repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
loongarch64: add new syscall numbers
[musl.git]
/
src
/
math
/
__signbitl.c
blob
63b3dc5a08f3d89a3dd39a3ce74d7974317a0aa9
1
#include
"libm.h"
2
3
#if (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
4
int
__signbitl
(
long double
x
)
5
{
6
union
ldshape u
= {
x
};
7
return
u
.
i
.
se
>>
15
;
8
}
9
#elif LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
10
int
__signbitl
(
long double
x
)
11
{
12
return
__signbit
(
x
);
13
}
14
#endif