musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/lrintl.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012年03月18日 20:40:43 +0100
committernsz <nsz@port70.net>2012年03月18日 20:40:43 +0100
commit65db00983f3fa5449f20f2694477f9d5116f6ea5 (patch)
treeb71e3a7354cc64caff3ac8707c278df512cfeb36 /src/math/lrintl.c
parent9b6899f2c5cec70af6cea80ead7ba98fd2366ce9 (diff)
downloadmusl-65db00983f3fa5449f20f2694477f9d5116f6ea5.tar.gz
make lrint and llrint functions work without fenv support
Diffstat (limited to 'src/math/lrintl.c')
-rw-r--r--src/math/lrintl.c 7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/math/lrintl.c b/src/math/lrintl.c
index 0e579bc5..5eb1ba7e 100644
--- a/src/math/lrintl.c
+++ b/src/math/lrintl.c
@@ -8,7 +8,7 @@ long lrintl(long double x)
{
return lrint(x);
}
-#else
+#elif defined(FE_INEXACT)
/*
see comments in lrint.c
@@ -27,4 +27,9 @@ long lrintl(long double x)
/* conversion */
return x;
}
+#else
+long lrintl(long double x)
+{
+ return rintl(x);
+}
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 18:31:16 +0000

AltStyle によって変換されたページ (->オリジナル) /