tree-vect.h

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C头文件 代码 · 共 27 行

H
27
字号
/* Check if system supports SIMD */#include <signal.h>extern void abort (void);extern void exit (int);voidsig_ill_handler (int sig){  exit(0);}void check_vect (void){  signal(SIGILL, sig_ill_handler);#if defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(powerpc)  /* Altivec instruction, 'vor %v0,%v0,%v0'.  */  asm volatile (".long 0x10000484");#elif defined(__i386__) || defined(__x86_64__)  /* SSE2 instruction: movsd %xmm0,%xmm0 */  asm volatile (".byte 0xf2,0x0f,0x10,0xc0");#elif defined(__sparc__)  asm volatile (".word\t0x81b007c0");#endif  signal (SIGILL, SIG_DFL);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?