OSDN Git Service

Atsushi Nemoto writes:
authorEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 09:29:40 +0000 (09:29 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 09:29:40 +0000 (09:29 -0000)
uClibc's libm has isinf/isinff, isnan/isnanf but not finite/finitef.
Here is a patch.

libm/fpmacros.c

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