mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 12:14:00 +02:00
CR fix: use predefined PI
This commit is contained in:
parent
a00cd42566
commit
0acbdc7755
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <NumericalConstants.h>
|
||||
|
||||
const int IEEE754_MANT_BITS = 23;
|
||||
const int IEEE754_EXPN_BIAS = 127;
|
||||
|
||||
|
@ -105,7 +107,7 @@ static inline float fastAcosf(float x) {
|
|||
xi.f = ((-0.0198439236f * xi.f + 0.0762021306f) * xi.f + -0.212940971f) * xi.f + 1.57079633f;
|
||||
|
||||
xi.f *= r;
|
||||
return (sign ? 3.141592654f - xi.f : xi.f);
|
||||
return (sign ? PI - xi.f : xi.f);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue