We cannot use SIGILL, so we have to trust CPUID.
Maybe there is a Win32 API to query the kernel support?
return false;
}
-# define check_capability(name, flag, code) \
+# define check_capability(name, flag, code) \
do { \
pid_t pid = fork(); \
if( pid == 0 ) \
} while(0)
# else /* WIN32 */
-# define check_capability(name, flag, code) (void)0
+# define check_capability(name, flag, code) \
+ do { \
+ i_capabilities |= (flag); \
+ } while(0)
# endif
#endif