libc: remove bad conflicting bad ceil for x86-64

This commit is contained in:
K. Lange 2023-04-23 18:06:22 +09:00
parent ed40dc436e
commit a9bd6e4cdc

View File

@ -1,17 +1,5 @@
#include <math.h> #include <math.h>
double ceil(double x) {
if (x == 0.0) return x;
double out;
asm volatile (
"frndint\n"
: "=t"(out) : "0"(x)
);
if (out < x) return out + 1.0;
return out;
}
double floor(double x) { double floor(double x) {
if (x == 0.0) return x; if (x == 0.0) return x;