tlk00 / BitMagic

BitMagic Library
http://bitmagic.io
Other
412 stars 48 forks source link

Avoid x86 SIMD detection in other platforms #66

Closed luizirber closed 3 years ago

luizirber commented 3 years ago

Fixes #65

I'm using the BM_x86 flag defined in bmdef.h to limit __cpuid calls to x86, I think that is the proper solution?

With these changes I'm able to compile and test the Rust bindings in aarch64/ppc64le/s390x platforms (tests are currently failing on s390x, but I don't have access to a machine to debug it :sweat_smile:)