Export (0) Print
Expand All
Expand Minimize

Compiler Error C2284

Error Message

'identifier': illegal argument to intrinsic function, parameter 'number'

The parameter is invalid for the given function.

The following sample generates C2284:

// C2284.c
// processor: IPF
#include <mmintrin.h>
#include <emmintrin.h>

__m64  __m64_dep_mi(const int, __m64, const int, const int);
#pragma intrinsic(__m64_dep_mi)
__m64 a;

int main(void) {
   __m64 b;
   double d = 78.98;
   b = __m64_dep_mi(0x0, a, 0x1, d);   // C2284
   // try the following line instead
   // b = __m64_dep_mi(0, a, 0x1, 0x1);
}

Community Additions

ADD
Show:
© 2014 Microsoft