1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-04-06 22:56:45 +00:00
oot/src/libultra/libc/llcvt.c
Tharo 3475651701
libc cleanup (#1568)
* libc cleanup

* Suggested changes, small alloca tweak

* Remove printf include
2023-10-27 16:06:44 +02:00

33 lines
477 B
C

// IDO Compiler Intrinsics for 64-bit conversion
long long __d_to_ll(double d) {
return d;
}
long long __f_to_ll(float f) {
return f;
}
unsigned long long __d_to_ull(double d) {
return d;
}
unsigned long long __f_to_ull(float f) {
return f;
}
double __ll_to_d(long long l) {
return l;
}
float __ll_to_f(long long l) {
return l;
}
double __ull_to_d(unsigned long long l) {
return l;
}
float __ull_to_f(unsigned long long l) {
return l;
}