Hello,
to satisfy our static analysis tool, I am including the intrinsic definitions in our code.
This works with most of them, but not all:
- CLA C intrinsic extern void __mswapf(float a , float b ):
error #149: declaration is incompatible with builtin "void __mswapf(float &, float &)
Changing intrinsic declaration to "extern void __mswapf(float *a , float *b )" does not help - still incompatible.
Changing intrinsic declaration to "extern void __mswapf(float & , float & )" does not help either - "error #18: expected a ")"
- Same problem for __f32_max_idx, __f32_min_idx
So how can I define these intrinsics correctly?
- The __fmax and __fmin definitions are not
float __fmax( float x, float y ) as in spru514e.pdf, but
double __fmax( double x, double y )
Is this a compiler or documentation error?