Files
KirkOS/user/include/mlibc/options/ansi/musl-generic-math/fabsf.c
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

10 lines
136 B
C

#include <math.h>
#include <stdint.h>
float fabsf(float x)
{
union {float f; uint32_t i;} u = {x};
u.i &= 0x7fffffff;
return u.f;
}