1
0
Fork 0
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:
cadmic 2024-08-19 22:15:24 -07:00 committed by GitHub
parent aba1bb88a3
commit ec70295357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 65 additions and 93 deletions

View file

@ -1,9 +0,0 @@
#include "global.h"
float absf(float n) {
#ifndef __GNUC__
return fabsf(n);
#else
return __builtin_fabsf(n);
#endif
}

View file

@ -1,9 +0,0 @@
#include "global.h"
double sqrt(double f) {
#ifndef __GNUC__
return sqrt(f);
#else
return __builtin_sqrt(f);
#endif
}