mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 01:40:47 +00:00
Move non-libultra libc functions to src/libc/ (#2055)
* Move non-libultra libc functions to src/libc/ * Add explicit nops in delay slots * Don't rely on CPP expanding undefined macros to 0 * Delete old Makefile rules * Fix type of memset()
This commit is contained in:
parent
aba1bb88a3
commit
ec70295357
19 changed files with 65 additions and 93 deletions
|
@ -1,9 +0,0 @@
|
|||
#include "global.h"
|
||||
|
||||
float absf(float n) {
|
||||
#ifndef __GNUC__
|
||||
return fabsf(n);
|
||||
#else
|
||||
return __builtin_fabsf(n);
|
||||
#endif
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
#include "global.h"
|
||||
|
||||
double sqrt(double f) {
|
||||
#ifndef __GNUC__
|
||||
return sqrt(f);
|
||||
#else
|
||||
return __builtin_sqrt(f);
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue