diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index a7531f10..b52d5d1b 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
| @@ -242,6 +242,11 @@ static LJ_AINLINE uint32_t lj_getu32(const void *p) | |||
| 242 | #define LJ_FASTCALL __fastcall | 242 | #define LJ_FASTCALL __fastcall |
| 243 | #endif | 243 | #endif |
| 244 | 244 | ||
| 245 | unsigned char _BitScanForward(uint32_t *, unsigned long); | ||
| 246 | unsigned char _BitScanReverse(uint32_t *, unsigned long); | ||
| 247 | unsigned long _byteswap_ulong(unsigned long); | ||
| 248 | uint64_t _byteswap_uint64(uint64_t); | ||
| 249 | |||
| 245 | static LJ_AINLINE uint32_t lj_ffs(uint32_t x) | 250 | static LJ_AINLINE uint32_t lj_ffs(uint32_t x) |
| 246 | { | 251 | { |
| 247 | uint32_t r; _BitScanForward(&r, x); return r; | 252 | uint32_t r; _BitScanForward(&r, x); return r; |
