commit | d638a500e96bdfec2bd3e34fc5545561b60cd9e6 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Feb 28 14:39:12 2012 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Feb 28 14:39:12 2012 -0800 |
tree | de5ae8a1d1778dc3badc1b73a385f94342bf82fa | |
parent | a1d3e0d8eb0e1e76f6200d6d1dce602512a3f6a7 [diff] | |
parent | ec37237d69289e2bb9836bfa0d071ab958234d00 [diff] |
Merge "update stddef.h"
diff --git a/libm/src/s_logb.c b/libm/src/s_logb.c index 30edb87..57f91c4 100644 --- a/libm/src/s_logb.c +++ b/libm/src/s_logb.c
@@ -36,9 +36,9 @@ if(ix>=0x7ff00000) return x*x; if(ix<0x00100000) { x *= two54; /* convert subnormal x to normal */ - GET_FLOAT_WORD(ix,x); + GET_HIGH_WORD(ix,x); ix &= 0x7fffffff; - return (float) ((ix>>20)-1023-54); + return (double) ((ix>>20)-1023-54); } else return (double) ((ix>>20)-1023); }