Skip to content

projectm-eval v1.0.3

Latest
Compare
Choose a tag to compare
@kblaschke kblaschke released this 04 Aug 17:39
0290017

This bugfix releases fixes some additional differences found in comparison to ns-eel2, mainly due to the original library not honoring floating-point exceptions in the assembly implementation of many functions. Those changes include:

  • Return 0.0 instead of 0.9 in log()and log10() functions.
  • Return 0.0 instead of Inf in pow() function if the base is 0.0 and the exponent negative.
  • Return 0.0 if the fast inverse square root function invsqrt() resolves to NaN.
  • Add a small amount (0.0001) to float values going into freembuf() to avoid indexing the wrong block due to rounding errors.

To further make sure all functions work as expected, some standard C types were changed to fixed-sizes types and unit tests were implemented for all available expression functions and operators.

Thanks to @OfficialIncubo for testing and making the changes!