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:
Pavel P
2019-09-06 07:59:50 -07:00
parent 4df4bcea29
commit 11f265c0a4
7 changed files with 176 additions and 4 deletions

3
fp.c
View File

@ -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))