toaruos/libc/math/bad.c
2018-06-26 20:53:48 +09:00

60 lines
650 B
C

/* STUB MATH LIBRARY */
double acos(double x) {
return 0.0;
}
double asin(double x) {
return 0.0;
}
double atan(double x) {
return 0.0;
}
double atan2(double y, double x) {
return 0.0;
}
double ceil(double x) {
return 0.0; /* extract and convert? */
}
double cosh(double x) {
return 0.0;
}
double ldexp(double a, int exp) {
double out = a;
while (exp) {
out *= 2.0;
exp--;
}
return out;
}
double log(double x) {
return 0.0;
}
double log10(double x) {
return 0.0;
}
double log2(double x) {
return 0.0;
}
double sinh(double x) {
return 0.0;
}
double tan(double x) {
return 0.0;
}
double tanh(double x) {
return 0.0;
}