Diagnostic 165: too few arguments in function call

Cause:

The Compiler issues the following error when a program calls a function with fewer number of arguments than the function needs:

        error #165: too few arguments in function call

Example:


#include <dvec.h>

int main()
{
    __m128d num = _mm_set_pd(3.0, 2.0);

  // Correct number of arguments is 3:  num = _mm_shuffle_pd(num, num, 1);
  num = _mm_shuffle_pd(num, num); // incorrect number of arguments

  return 0;
}

> icl -c test.cpp
Intel® C++ Compiler Professional for applications running on IA-32, Version 11.0    Build 20090131 Package ID: w_cproc_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

test.cpp
test.cpp(8): error #165: too few arguments in function call
    num = _mm_shuffle_pd(num, num);
                                 ^

compilation aborted for test.cpp (code 2)

Resolution:

Call the function with the correct number of arguments:

#include <dvec.h>

int main()
{
    __m128d num = _mm_set_pd(3.0, 2.0);

  num = _mm_shuffle_pd(num, num, 1); // Correct number of arguments is 3
  // incorrect number of arguments: num = _mm_shuffle_pd(num, num);

  return 0;
}

> icl -c test.cpp
Intel® C++ Compiler Professional for applications running on IA-32, Version 11.0    Build 20090131 Package ID: w_cproc_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

test.cpp
>

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.
Возможность комментирования русскоязычного контента была отключена. Узнать подробнее.