浏览代码

- fix: ifdef __CPU_i386 define __CPU_x86

Andrei Pelinescu-Onciul 17 年之前
父节点
当前提交
96b7feae4e
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 5 0
      bit_scan.h
  2. 4 0
      test/profile.h

+ 5 - 0
bit_scan.h

@@ -46,6 +46,11 @@
 
 #include <limits.h>
 
+/* fix __CPU_i386 -> __CPU_x86 */
+#if defined __CPU_i386 && ! defined __CPU_x86
+#define __CPU_x86
+#endif
+
 
 #ifdef CC_GCC_LIKE_ASM
 #if defined __CPU_x86 || defined __CPU_x86_64

+ 4 - 0
test/profile.h

@@ -68,6 +68,10 @@
  *                              the cpu cycles counter
  */
 
+#if defined __CPU_i386 && ! defined __CPU_x86
+#define __CPU_x86
+#endif
+
 #ifdef __CPU_x86
 typedef unsigned long long cycles_t;