projects
/
libm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm]
/
src
/
math
/
fminl.c
1
#include "libm.h"
2
long double fminl(long double x, long double y)
3
{
4
if (isnan(x))
5
return y;
6
if (isnan(y))
7
return x;
8
/* handle signed zeros, see C99 Annex F.9.9.2 */
9
if (signbit(x) != signbit(y))
10
return signbit(x) ? x : y;
11
return x < y ? x : y;
12
}