since it goes high in Google's search for this error, here is what I did for my program, which refused to compile on the x64 CentOS system, which ia32intrin.h lacks:
#if !defined(_rotr) && (defined(__i386__) || defined(__x86_64__)) static inline unsigned int _rotr(unsigned int n, const int count) { asm volatile ( "rorl %1, %0;" : "=r" (n) : "nI" (count), "0" (n) ); return n; }
as mentioned in avakar, you need to enable cstring or alternatively string.h to get memset and memcpy.
the code for _rotl would be identical, except for the operation code mnemonics, which would be roll .
jcomeau_ictx
source share