Fix incorrect rounding in C version of sinf

This commit is contained in:
Ryan Dwyer 2023-08-20 16:34:38 +10:00
parent e18167d8ae
commit d7926f12ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;