mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use sincosf where available (linux)
This commit is contained in:
parent
a325049d6c
commit
ee1d16cb1d
1 changed files with 4 additions and 0 deletions
|
@ -48,8 +48,12 @@ inline float vfpu_cos(float angle) {
|
||||||
inline void vfpu_sincos(float angle, float &sine, float &cosine) {
|
inline void vfpu_sincos(float angle, float &sine, float &cosine) {
|
||||||
angle -= floorf(angle * 0.25f) * 4.f;
|
angle -= floorf(angle * 0.25f) * 4.f;
|
||||||
angle *= (float)M_PI_2;
|
angle *= (float)M_PI_2;
|
||||||
|
#if defined(__linux__) && !defined(ANDROID) // TODO: Remove this check when we upgrade NDK on the buildbot
|
||||||
|
sincosf(angle, &sine, &cosine);
|
||||||
|
#else
|
||||||
sine = sinf(angle);
|
sine = sinf(angle);
|
||||||
cosine = cosf(angle);
|
cosine = cosf(angle);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VFPU_FLOAT16_EXP_MAX 0x1f
|
#define VFPU_FLOAT16_EXP_MAX 0x1f
|
||||||
|
|
Loading…
Add table
Reference in a new issue