Typing errors in xmm_func.h header file for _mm_prefetch intrinsic function

Typing errors in xmm_func.h header file for _mm_prefetch intrinsic function

There are two typing errors in xmm_func.h header file for _mm_prefetch intrinsic function. Details will be provided.

 

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

In the xmm_func.h header it looks like:

...
/****************************************************/
/* NAME : mm_prefetch */
/* DESCRIPTION : prefetch */
/* IN : float *a : address to prefetch */
/* OUT : none */
/* RETURN : none */
/****************************************************/

_MM_INLINE_COMMAND static void __cdecl _mm_prefetch( char const *a, int sel )
{
/* second param not used */
volatile char pp = *a;
}
...

1. There is no underscore in the name of the intrinsic function ( mm_prefetch and it needs to be _mm_prefetch )
2. Incorrect data type for input parameter in the description ( it needs to be char const *a )

登陆并发表评论。