Closed BullyWiiPlaza closed 3 years ago
Are you sure you defined JM_XORSTR_DISABLE_AVX_INTRINSICS
correctly? Because the error you linked should only happen with them enabled.
Either way, you could fix this by just settings -march=native
(for what your local CPU supports) or whatever CPU series you want that supports AVX2 instruction set.
Either way, you could fix this by just settings
-march=native
(for what your local CPU supports) or whatever CPU series you want that supports AVX2 instruction set.
That did the trick, thank you.
I've been trying to apply the XOR string to various strings but I ran into a compilation error for
GCC
if the string is longer than a certain length (15 characters):Error message:
Defining
JM_XORSTR_DISABLE_AVX_INTRINSICS
or not does not matter.On
MSVC
this compiles successfully regardless of length so it seems to be aGCC
standard library issue related to string length (as indicated by the compilation error).Any ideas on how to overcome this error for
GCC
(on Linux)?