Fix x86 build
- added _mm_cvtsi64_si128/_bzhi_u64 for non x64 builds - added _BitScanForward64/_BitScanReverse64 for non x64/arm64 builds - added x86 build target to vs2017 project files - compilation fixes
This commit is contained in:
3
fp.c
3
fp.c
@ -44,6 +44,9 @@
|
||||
#include <intrin.h>
|
||||
#else
|
||||
#include <x86intrin.h>
|
||||
#endif
|
||||
#if !(defined(_M_X64) || defined(__amd64__)) && (defined(__i386__) || defined(_M_IX86))
|
||||
#define _bzhi_u64(_u_, _b_) ((_u_) & ((1ull<<(_b_))-1))
|
||||
#endif
|
||||
#else
|
||||
#define _bzhi_u64(_u_, _b_) ((_u_) & ((1ull<<(_b_))-1))
|
||||
|
||||
Reference in New Issue
Block a user