mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-09 13:35:22 -04:00
Fix incorrect rounding in C version of sinf
This commit is contained in:
@@ -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