The unrolled loops in the Reed-Solomon code were wrong for big-endian targets. I added a compile-time test in CMake and ifdefs in the code.
I've tested the changes using sbuild and qemu-user-static on Debian s390x (big-endian, 64-bit) and powerpc (big-endian, 32-bit). Both work and so do little-endian amd64 and i386.
The unrolled loops in the Reed-Solomon code were wrong for big-endian targets. I added a compile-time test in CMake and
ifdef
s in the code. I've tested the changes usingsbuild
andqemu-user-static
on Debian s390x (big-endian, 64-bit) and powerpc (big-endian, 32-bit). Both work and so do little-endian amd64 and i386.