catid / gf256

GF256 - Fast 8-bit Galois Field Math in C
BSD 3-Clause "New" or "Revised" License
51 stars 11 forks source link

Add support for big-endian architectures #9

Closed uweigand closed 3 years ago

uweigand commented 3 years ago

This patch adds support for big-endian architectures in the two routines where the code makes byte order assumptions.

Edit: Updated to make host byte detection more robust.

catid commented 3 years ago

Nice man! Curious what you're using this for now =)

uweigand commented 3 years ago

@catid The nooba-core project is now pulling in cm256 to implement erasure coding. We want to make sure this works across the IBM hardware platforms as well, including the big-endian IBM Z (mainframe).

Thanks for merging! I believe the cm256 repo has a copy of these files -- are you merging these changes over automatically or would you prefer me to open PRs against cm256 as well?