Maths.h bug, missing parens
Posted: Wed Feb 17, 2016 9:47 am
The min, max, and abs macros need total parens outside the expression, otherwise they're buggy.
For example:
if (abs(a) >= 512)
This produces wrong results with the current macros.
For example:
if (abs(a) >= 512)
This produces wrong results with the current macros.