Try FIXFLOAT rounding based on sign
This commit is contained in:
parent
39c6f65ce7
commit
d462be6de6
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@
|
||||||
#define NEAR(x,y) NEAR_ZERO((x)-(y))
|
#define NEAR(x,y) NEAR_ZERO((x)-(y))
|
||||||
|
|
||||||
#define RECIPROCAL(x) (NEAR_ZERO(x) ? 0.0 : 1.0 / (x))
|
#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
|
// Maths macros that can be overridden by HAL
|
||||||
|
|
Reference in a new issue