Skip to content

Conversation

@Wuerfel21
Copy link
Contributor

Current QLOG and QEXP constant evaluation is based on libm floating-point functions, so may cause inconsistency between host systems. I think there was a problem with QLOG 0, but other values are usually only off by a few LSBs, which speaks to the quality of both the glibc math library and the P2 hardware. The implementation is derived from PNut source, though that isn't accurate either (rounding bug in QEXP).

Bonus: add a missing header definition for log2.

@totalspectrum totalspectrum merged commit b382e42 into totalspectrum:master Jun 10, 2025
5 checks passed
@totalspectrum
Copy link
Owner

Thank you, Ada!

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

Successfully merging this pull request may close these issues.

2 participants