projects
/
libm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
< nwmcsween> nsz libm.h slow -> large
[libm]
/
src
/
math
/
fabsl.c
1
#include "libm.h"
2
#if LD64
3
long double fabsl(long double x)
4
{
5
return fabs(x);
6
}
7
#elif LD80 || LD128
8
long double fabsl(long double x)
9
{
10
union ldshape u = {x};
11
12
u.bits.sign = 0;
13
return u.value;
14
}
15
#endif