summaryrefslogtreecommitdiff
path: root/src/math/signbit.c
blob: 7b5ba8a2e8b0420e47a836dbd4ddfb44e6f3e82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <math.h>
                               int __signbitf(float x);
                              int __signbitd(double x);
                         int __signbitl(long double x);

#define signbit(x)          ((sizeof (x) == sizeof (float)) ? __signbitf(x) : \
                (sizeof (x) == sizeof (double)) ? __signbitd(x) : __signbitl(x))

/*
STDC(199901)
LINK(m)
*/