Hi,
I agree that "const void *" is the better parameter for _mm_prefetch, but it
leads to incompatible code. ICC defines _mm_prefetch as:
void _mm_prefetch(char const *, int)
and MSVC documents it as:
void _mm_prefetch(char * p , int i )
(which is even worse). I would expect the GCC header to use "const char *" too
for the sake of portable code.
--
Summary: _mm_prefetch parameter is "char const *" in ICC
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kretz at kde dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45414