Initial import
This commit is contained in:
8
libc/math/fabsf.c
Normal file
8
libc/math/fabsf.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "libc/math/math.h"
|
||||
|
||||
float fabsf(float x)
|
||||
{
|
||||
union {float f; uint32_t i;} u = {x};
|
||||
u.i &= 0x7fffffff;
|
||||
return u.f;
|
||||
}
|
||||
Reference in New Issue
Block a user