public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d0d1d
)
bug fix in rounding for 4-byte floating point numbers
author
ceriel
<none@none>
Wed, 11 Oct 1989 13:34:05 +0000
(13:34 +0000)
committer
ceriel
<none@none>
Wed, 11 Oct 1989 13:34:05 +0000
(13:34 +0000)
mach/con_float
patch
|
blob
|
history
diff --git
a/mach/con_float
b/mach/con_float
index
a86701c
..
5424a86
100644
(file)
--- a/
mach/con_float
+++ b/
mach/con_float
@@
-77,7
+77,7
@@
float_cst(str, sz, buf)
e.flt_exp += 127;
if (e.flt_mantissa.flt_h_32 == 0) e.flt_exp = 0;
#ifdef IEEEFLOAT
- if (e.flt_mantissa.flt_
l
_32 & 0x80) {
+ if (e.flt_mantissa.flt_
h
_32 & 0x80) {
/* rounding */
if ((e.flt_mantissa.flt_h_32 & 0xffffff00) == 0xffffff00) {
e.flt_exp++;