[uClibc] [PATCH] libm finite/finitef support

Atsushi Nemoto anemo at mba.ocn.ne.jp
Wed Oct 22 06:09:08 UTC 2003


uClibc's libm has isinf/isinff, isnan/isnanf but not finite/finitef.
Here is a patch.

diff -ur uClibc-0.9.21.org/libm/fpmacros.c uClibc-0.9.21/libm/fpmacros.c
--- uClibc-0.9.21.org/libm/fpmacros.c	Tue Sep  2 00:00:54 2003
+++ uClibc-0.9.21/libm/fpmacros.c	Wed Oct 22 13:52:26 2003
@@ -158,11 +158,13 @@
    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)
 
 
 /***********************************************************************
---
Atsushi Nemoto



More information about the uClibc mailing list