forked from Ports/perfect_dark
Fix incorrect rounding in C version of sinf
This commit is contained in:
1 parent
e18167d8ae
commit
d7926f12ad
1 file changed
+1
-1
@@ -1616,7 +1616,7 @@ f32 sinf(f32 radians)
|
||||
if (t0 < 310) {
|
||||
f14 = radians * 0.31830987334251f;
|
||||
|
||||
t1 = (s32) (f14 + 0.5f);
|
||||
t1 = (s32) (f14 > 0.0f ? f14 + 0.5f : f14 - 0.5f);
|
||||
f14 = t1;
|
||||
|
||||
f15 = M_PI;
|
||||
|
||||
Reference in new issue
Block a user