Browse Source

- fix: ifdef __CPU_i386 define __CPU_x86

Andrei Pelinescu-Onciul 17 years ago
parent
commit
96b7feae4e
2 changed files with 9 additions and 0 deletions
  1. 5 0
      bit_scan.h
  2. 4 0
      test/profile.h

+ 5 - 0
bit_scan.h

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

+ 4 - 0
test/profile.h

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