Try FIXFLOAT rounding based on sign

This commit is contained in:
Scott Lahteine 2018-04-16 04:44:36 -05:00
parent 77b75ce86c
commit 5c186f7dd3

View File

@ -217,7 +217,7 @@
#define NEAR(x,y) NEAR_ZERO((x)-(y))
#define RECIPROCAL(x) (NEAR_ZERO(x) ? 0.0 : 1.0 / (x))
#define FIXFLOAT(f) (f + 0.00001)
#define FIXFLOAT(f) (f + (f < 0.0 ? -0.00001 : 0.00001))
//
// Maths macros that can be overridden by HAL