From 5ba9b4082e15ac66781707655d981ca92969cf6e Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Wed, 23 Oct 2024 23:56:35 +0300 Subject: [PATCH] dummy lrintl w/o inline asm --- src/libc/c99/math/lrintl.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/libc/c99/math/lrintl.c b/src/libc/c99/math/lrintl.c index 6efa20797..30a4077f2 100644 --- a/src/libc/c99/math/lrintl.c +++ b/src/libc/c99/math/lrintl.c @@ -1,14 +1,6 @@ -/* Copyright (C) 2013 DJ Delorie, see COPYING.DJ for details */ - #include - -long int -lrintl(long double x) +long lrintl(long double x) { - long int result; - - asm("fistpl %0" : "=m" (result) : "t" (x) : "st"); - - return result; + return rintl(x); }