mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-13 19:35:28 +00:00
Match fp_math.c (#2116)
This commit is contained in:
parent
6e5ea8c7aa
commit
87914c6cc6
4 changed files with 90 additions and 8 deletions
|
@ -41,6 +41,13 @@ f32 fabsf(f32 f);
|
|||
#define fabsf(f) __builtin_fabsf((f32)(f))
|
||||
#endif
|
||||
|
||||
f64 fabs(f64 f);
|
||||
#ifdef __sgi
|
||||
#pragma intrinsic(fabs)
|
||||
#else
|
||||
#define fabs(f) __builtin_fabs((f64)(f))
|
||||
#endif
|
||||
|
||||
f32 sqrtf(f32 f);
|
||||
// IDO has a sqrtf intrinsic, but in N64 versions it's not used for some files.
|
||||
// For these files we define NO_SQRTF_INTRINSIC to use the sqrtf function instead.
|
||||
|
@ -53,8 +60,10 @@ f64 sqrt(f64 f);
|
|||
#pragma intrinsic(sqrt)
|
||||
#endif
|
||||
|
||||
#if PLATFORM_GC
|
||||
extern float qNaN0x3FFFFF;
|
||||
extern float qNaN0x10000;
|
||||
extern float sNaN0x3FFFFF;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue