OSDN Git Service

ldd: Add MATCH_MACHINE definition for Meta
[uclinux-h8/uClibc.git] / libm / e_scalb.c
index 7e67688..9e1a3f7 100644 (file)
  */
 
 /*
- * __ieee754_scalb(x, fn) is provide for
- * passing various standard test suite. One
- * should use scalbn() instead.
+ * __ieee754_scalb(x, fn) is provided for
+ * passing various standard test suites.
+ * One should use scalbn() instead.
  */
 
 #include "math.h"
 #include "math_private.h"
 #include <errno.h>
 
-double attribute_hidden __ieee754_scalb(double x, double fn)
+double __ieee754_scalb(double x, double fn)
 {
-       return scalbn(x,fn);
        if (isnan(x)||isnan(fn)) return x*fn;
        if (!isfinite(fn)) {
            if(fn>0.0) return x*fn;
@@ -31,14 +30,13 @@ double attribute_hidden __ieee754_scalb(double x, double fn)
        if ( fn > 65000.0) return scalbn(x, 65000);
        if (-fn > 65000.0) return scalbn(x,-65000);
        return scalbn(x,(int)fn);
-#endif
 }
 
 #if defined __UCLIBC_SUSV3_LEGACY__
 /*
- * wrapper scalb(double x, double fn) is provide for
- * passing various standard test suite. One
- * should use scalbn() instead.
+ * wrapper scalb(double x, double fn) is provided for
+ * passing various standard test suites.
+ * One should use scalbn() instead.
  */
 #ifndef _IEEE_LIBM
 double scalb(double x, double fn)
@@ -57,5 +55,6 @@ double scalb(double x, double fn)
 #else
 strong_alias(__ieee754_scalb, scalb)
 #endif
+libm_hidden_def(scalb)
 
 #endif /* UCLIBC_SUSV3_LEGACY */