diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-04-10 11:35:02 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-04-10 11:35:02 +0000 |
commit | db847ee0d1d194c624e98eb0088d9c90a36b8893 (patch) | |
tree | 059cf294c42df4a220faeebdd821bd977c10a330 /lib | |
parent | 1abf7a5bafdea75dab59dba6247028e9627d2094 (diff) |
20 -> DBL_FRACHBITS
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/src/s_lrint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libm/src/s_lrint.c b/lib/libm/src/s_lrint.c index 65ba11f9d50..fdfdd2b7d87 100644 --- a/lib/libm/src/s_lrint.c +++ b/lib/libm/src/s_lrint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_lrint.c,v 1.2 2011/04/10 11:25:14 martynas Exp $ */ +/* $OpenBSD: s_lrint.c,v 1.3 2011/04/10 11:35:01 martynas Exp $ */ /* $NetBSD: lrint.c,v 1.3 2004/10/13 15:18:32 drochner Exp $ */ /*- @@ -57,7 +57,7 @@ LRINTNAME(double x) RESTYPE res; GET_HIGH_WORD(i0, x); - e = i0 >> 20; + e = i0 >> DBL_FRACHBITS; s = e >> DBL_EXPBITS; e = (e & 0x7ff) - DBL_EXP_BIAS; @@ -73,9 +73,9 @@ LRINTNAME(double x) } EXTRACT_WORDS(i0, i1, x); - e = ((i0 >> 20) & 0x7ff) - DBL_EXP_BIAS; + e = ((i0 >> DBL_FRACHBITS) & 0x7ff) - DBL_EXP_BIAS; i0 &= 0xfffff; - i0 |= (1 << 20); + i0 |= (1 << DBL_FRACHBITS); if (e < 0) return (0); |