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/significand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/significand.c')
-rw-r--r--src/math/significand.c 7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/significand.c b/src/math/significand.c
new file mode 100644
index 00000000..40d9aa9f
--- /dev/null
+++ b/src/math/significand.c
@@ -0,0 +1,7 @@
+#define _GNU_SOURCE
+#include <math.h>
+
+double significand(double x)
+{
+ return scalbn(x, -ilogb(x));
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月21日 11:48:58 +0000

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