mirror of
https://github.com/fluencelabs/musl
synced 2025-06-26 13:12:03 +00:00
make math.h compatibe with c89
This commit is contained in:
@ -52,7 +52,11 @@ int __fpclassifyl(long double);
|
|||||||
|
|
||||||
#define isunordered(x,y) (isnan((x)) ? ((y),1) : isnan((y)))
|
#define isunordered(x,y) (isnan((x)) ? ((y),1) : isnan((y)))
|
||||||
|
|
||||||
static inline int __isrel(long double __x, long double __y, int __rel)
|
static
|
||||||
|
#if __STDC_VERSION >= 199901L
|
||||||
|
inline
|
||||||
|
#endif
|
||||||
|
int __isrel(long double __x, long double __y, int __rel)
|
||||||
{
|
{
|
||||||
if (isunordered(__x, __y)) return 0;
|
if (isunordered(__x, __y)) return 0;
|
||||||
if (__rel==-2) return __x < __y;
|
if (__rel==-2) return __x < __y;
|
||||||
|
Reference in New Issue
Block a user