lemire / FastPFor

The FastPFOR C++ library: Fast integer compression
Apache License 2.0
849 stars 124 forks source link

Fix x86 build with msvc compiler #112

Closed pps83 closed 4 months ago

pps83 commented 4 months ago

Replace check for _M_X64 with _M_IX86 to make sure x86 builds can be compiled

pps83 commented 4 months ago

after pulling latest I got tons of compilation errors:

1>FastPFor\headers\simdbitpacking.h(14,48): error C2061: syntax error: identifier '__m128i'
1>(compiling source file '../src/coders.cpp')
1>FastPFor\headers\simdbitpacking.h(17,26): error C2061: syntax error: identifier '__m128i'
1>(compiling source file '../src/coders.cpp')
1>FastPFor\headers\simdbitpacking.h(18,31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>(compiling source file '../src/coders.cpp')
1>FastPFor\headers\simdbitpacking.h(18,31): error C2143: syntax error: missing ',' before '*'

...