This commit is contained in:
K. Lange 2018-09-22 21:19:50 +09:00
parent 46d4893036
commit a6f96243e2
2 changed files with 9 additions and 5 deletions

View File

@ -14,11 +14,6 @@ double asin(double x) {
return 0.0;
}
double ceil(double x) {
BAD;
return 0.0; /* extract and convert? */
}
double cosh(double x) {
BAD;
return 0.0;

View File

@ -10,6 +10,15 @@ double exp(double x) {
return pow(2.71828182846, x);
}
double ceil(double x) {
int _x = x;
if ((float)_x == x) return x;
if (x < 0.0) {
return (double)_x;
}
return (double)_x + 1;
}
double floor(double x) {
MATH;
if (x > -1.0 && x < 1.0) {