Browse Source

Atsushi Nemoto writes:

uClibc's libm has isinf/isinff, isnan/isnanf but not finite/finitef.
Here is a patch.
Eric Andersen 20 years ago
parent
commit
7845251d59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libm/fpmacros.c

+ 2 - 0
libm/fpmacros.c

@@ -158,11 +158,13 @@ int __finitef ( float x )
    z.fval = x;
    z.fval = x;
    return ((z.lval & FEXP_MASK) != FEXP_MASK);
    return ((z.lval & FEXP_MASK) != FEXP_MASK);
 }
 }
+weak_alias (__finitef, finitef)
    
    
 int __finite ( double x )
 int __finite ( double x )
 {
 {
 	return ( __fpclassify ( x ) >= FP_ZERO ); 
 	return ( __fpclassify ( x ) >= FP_ZERO ); 
 }
 }
+weak_alias (__finite, finite)
 
 
 
 
 /***********************************************************************
 /***********************************************************************