diff options
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index 7604d84b..c9e9b307 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h | |||
@@ -174,7 +174,11 @@ | |||
174 | #elif LUAJIT_TARGET == LUAJIT_ARCH_PPC | 174 | #elif LUAJIT_TARGET == LUAJIT_ARCH_PPC |
175 | 175 | ||
176 | #define LJ_ARCH_NAME "ppc" | 176 | #define LJ_ARCH_NAME "ppc" |
177 | #if _LP64 | ||
178 | #define LJ_ARCH_BITS 64 | ||
179 | #else | ||
177 | #define LJ_ARCH_BITS 32 | 180 | #define LJ_ARCH_BITS 32 |
181 | #endif | ||
178 | #define LJ_ARCH_ENDIAN LUAJIT_BE | 182 | #define LJ_ARCH_ENDIAN LUAJIT_BE |
179 | #define LJ_ARCH_HASFPU 1 | 183 | #define LJ_ARCH_HASFPU 1 |
180 | #define LJ_TARGET_PPC 1 | 184 | #define LJ_TARGET_PPC 1 |
@@ -200,6 +204,7 @@ | |||
200 | #endif | 204 | #endif |
201 | #if __PPC64__ || __powerpc64__ || LJ_TARGET_XBOX360 | 205 | #if __PPC64__ || __powerpc64__ || LJ_TARGET_XBOX360 |
202 | #define LJ_ARCH_PPC64 1 | 206 | #define LJ_ARCH_PPC64 1 |
207 | #define LJ_ARCH_NOFFI 1 | ||
203 | #endif | 208 | #endif |
204 | #if _ARCH_PPCSQ | 209 | #if _ARCH_PPCSQ |
205 | #define LJ_ARCH_SQRT 1 | 210 | #define LJ_ARCH_SQRT 1 |