aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2013-01-03 21:41:27 +0100
committerMike Pall <mike>2013-01-03 21:41:27 +0100
commitfb101458c54b695ea125c39019ae58baa782ef46 (patch)
tree5a9f47535f193d29e8ed351ddd70892d56468295 /src
parent8b97dc738f97616875276eab38dcf225b03d1ec4 (diff)
downloadluajit-fb101458c54b695ea125c39019ae58baa782ef46.tar.gz
luajit-fb101458c54b695ea125c39019ae58baa782ef46.tar.bz2
luajit-fb101458c54b695ea125c39019ae58baa782ef46.zip
Allow using MSVC intrinsics with older versions.
Diffstat (limited to 'src')
-rw-r--r--src/lj_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h
index b52d5d1b..26cf7fdc 100644
--- a/src/lj_def.h
+++ b/src/lj_def.h
@@ -242,6 +242,8 @@ 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#pragma intrinsic(_BitScanForward)
246#pragma intrinsic(_BitScanReverse)
245unsigned char _BitScanForward(uint32_t *, unsigned long); 247unsigned char _BitScanForward(uint32_t *, unsigned long);
246unsigned char _BitScanReverse(uint32_t *, unsigned long); 248unsigned char _BitScanReverse(uint32_t *, unsigned long);
247unsigned long _byteswap_ulong(unsigned long); 249unsigned long _byteswap_ulong(unsigned long);