diff options
author | Mike Pall <mike> | 2011-05-26 17:58:29 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-05-26 17:58:29 +0200 |
commit | ae3179926af3deca671437c978375b39df6350e1 (patch) | |
tree | 1c923f5e39ebc41d39168114d20aa972d773259c /src/lj_jit.h | |
parent | 185554b682c1e3dab74d4fa310797033a32815ef (diff) | |
download | luajit-ae3179926af3deca671437c978375b39df6350e1.tar.gz luajit-ae3179926af3deca671437c978375b39df6350e1.tar.bz2 luajit-ae3179926af3deca671437c978375b39df6350e1.zip |
ARM: Add CPU detection.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 63584355..ea2dd4ad 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -26,6 +26,14 @@ | |||
26 | /* Names for the CPU-specific flags. Must match the order above. */ | 26 | /* Names for the CPU-specific flags. Must match the order above. */ |
27 | #define JIT_F_CPU_FIRST JIT_F_CMOV | 27 | #define JIT_F_CPU_FIRST JIT_F_CMOV |
28 | #define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM" | 28 | #define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM" |
29 | #elif LJ_TARGET_ARM | ||
30 | #define JIT_F_ARMV6 0x00000010 | ||
31 | #define JIT_F_ARMV6T2 0x00000020 | ||
32 | #define JIT_F_ARMV7 0x00000040 | ||
33 | |||
34 | /* Names for the CPU-specific flags. Must match the order above. */ | ||
35 | #define JIT_F_CPU_FIRST JIT_F_ARMV6 | ||
36 | #define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7" | ||
29 | #else | 37 | #else |
30 | #define JIT_F_CPU_FIRST 0 | 38 | #define JIT_F_CPU_FIRST 0 |
31 | #define JIT_F_CPUSTRING "" | 39 | #define JIT_F_CPUSTRING "" |