Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch-math seems broken on big-endian systems? #124

Open
RAOF opened this issue Dec 16, 2020 · 0 comments
Open

ch-math seems broken on big-endian systems? #124

RAOF opened this issue Dec 16, 2020 · 0 comments

Comments

@RAOF
Copy link
Collaborator

RAOF commented Dec 16, 2020

Or at least the tests? ch-self-test.c has a bunch of tests of the form ch_double_to_packed_float(3.1415, &pf) followed by pulling out the low 16 bits and high 16 bits of the ChPackedFloat and then expecting them to have certain values. I don't think this works on big-endian systems.

Empirically, I'm now running these tests in the Debian packaging and they're failing on big-endian systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant