Skip to content

Commit

Permalink
Also turn off the wrapping in vfpu_sincos
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Oct 10, 2020
1 parent 512dbd3 commit 737eb2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/MIPS/MIPSVFPUUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ inline float vfpu_asin(float angle) {

inline void vfpu_sincos(float angle_f, float &sine, float &cosine) {
double angle = (double)angle_f;
/*
angle -= floor(angle * 0.25) * 4.;
if (angle == 0.0f) {
sine = 0.0f;
Expand All @@ -93,6 +94,7 @@ inline void vfpu_sincos(float angle_f, float &sine, float &cosine) {
sine = -1.0f;
cosine = 0.0f;
} else {
*/
angle *= M_PI_2;
#if defined(__linux__)
double d_sine;
Expand All @@ -104,7 +106,7 @@ inline void vfpu_sincos(float angle_f, float &sine, float &cosine) {
sine = (float)sin(angle);
cosine = (float)cos(angle);
#endif
}
// }
}

inline float vfpu_clamp(float v, float min, float max) {
Expand Down

0 comments on commit 737eb2c

Please sign in to comment.