libc: remove bad conflicting bad ceil for x86-64
This commit is contained in:
parent
ed40dc436e
commit
a9bd6e4cdc
@ -1,17 +1,5 @@
|
||||
#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) {
|
||||
if (x == 0.0) return x;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user