From 7450f4f2bd19b1c6de0218a44aaba53639985768 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 14 Jul 2025 22:39:34 -0400 Subject: usr: libc: Add math.h + musl math impl port Signed-off-by: Ian Moffett --- lib/libc/src/musl-math/sqrtl.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/libc/src/musl-math/sqrtl.c (limited to 'lib/libc/src/musl-math/sqrtl.c') diff --git a/lib/libc/src/musl-math/sqrtl.c b/lib/libc/src/musl-math/sqrtl.c new file mode 100644 index 0000000..83a8f80 --- /dev/null +++ b/lib/libc/src/musl-math/sqrtl.c @@ -0,0 +1,7 @@ +#include + +long double sqrtl(long double x) +{ + /* FIXME: implement in C, this is for LDBL_MANT_DIG == 64 only */ + return sqrt(x); +} -- cgit v1.2.3