diff options
| author | Mike Pall <mike> | 2012-07-09 15:54:25 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2012-07-09 15:54:25 +0200 |
| commit | 6e4d0fdc8e8121fac45d85661c638093fbfd1e3a (patch) | |
| tree | d22f4ef58424c2ef8b8600a65fe5f78ec9557092 /src | |
| parent | b23a7830d23b80bb3f78ec9a9416d3b8119733e7 (diff) | |
| download | luajit-6e4d0fdc8e8121fac45d85661c638093fbfd1e3a.tar.gz luajit-6e4d0fdc8e8121fac45d85661c638093fbfd1e3a.tar.bz2 luajit-6e4d0fdc8e8121fac45d85661c638093fbfd1e3a.zip | |
Add missing declarations for MSVC intrinsics.
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; |
