diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 04:03:33 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 04:03:33 +0000 |
commit | cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8 (patch) | |
tree | 520f8e8d113184cfa7954ebd274564b8c255fa9a /libm/powerpc/w_scalb.c | |
parent | e4461be66e2655058aef358b00050bc70ac72861 (diff) | |
download | uClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.bz2 uClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.xz |
Merge from trunk. Going pretty good so far. Kind of. Okay, not really.
Diffstat (limited to 'libm/powerpc/w_scalb.c')
-rw-r--r-- | libm/powerpc/w_scalb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libm/powerpc/w_scalb.c b/libm/powerpc/w_scalb.c index fe23ece53..408136001 100644 --- a/libm/powerpc/w_scalb.c +++ b/libm/powerpc/w_scalb.c @@ -19,6 +19,7 @@ ** ***********************************************************************/ +#include <math.h> #include <endian.h> typedef union @@ -50,7 +51,12 @@ static const double twoToM1022 = 2.225073858507201383e-308; // 0x1p-1022 Calls: none. ***********************************************************************/ +libm_hidden_proto(scalb) +#ifdef _SCALB_INT double scalb ( double x, int n ) +#else +double scalb ( double x, double n ) +#endif { DblInHex xInHex; @@ -85,3 +91,4 @@ double scalb ( double x, int n ) xInHex.words.hi = ( ( unsigned long ) ( n + 1023 ) ) << 20; return ( x * xInHex.dbl ); } +libm_hidden_def(scalb) |