From a9bd6e4cdc27f048028f91b32768b5522255bfe6 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 23 Apr 2023 18:06:22 +0900 Subject: [PATCH] libc: remove bad conflicting bad ceil for x86-64 --- libc/arch/x86_64/math.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libc/arch/x86_64/math.c b/libc/arch/x86_64/math.c index a1d6048a..1d0eb7a9 100644 --- a/libc/arch/x86_64/math.c +++ b/libc/arch/x86_64/math.c @@ -1,17 +1,5 @@ #include -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;