projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63dcda
)
alpha: fix conversion from denormal float to double
author
Ivan Kokshaysky
<
[email protected]
>
Thu, 17 Jan 2008 23:21:13 +0000
(15:21 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 17 Jan 2008 23:38:59 +0000
(15:38 -0800)
The trap handler does properly update the fraction,
but not the exponent...
Thanks to Paolo Bonzini for the bug report and the testcase.
Signed-off-by: Ivan Kokshaysky <
[email protected]
>
Cc: Paolo Bonzini <
[email protected]
>
Cc: Richard Henderson <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/alpha/math-emu/math.c
patch
|
blob
|
history
diff --git
a/arch/alpha/math-emu/math.c
b/arch/alpha/math-emu/math.c
index ae79dd970b021ff84ca59d3b5f6b14a4b19ce25f..58c2669a1dd4fa431f32ecbe8416c24a540525ba 100644
(file)
--- a/
arch/alpha/math-emu/math.c
+++ b/
arch/alpha/math-emu/math.c
@@
-225,7
+225,7
@@
alpha_fp_emul (unsigned long pc)
FP_UNPACK_SP(SB, &vb);
DR_c = DB_c;
DR_s = DB_s;
- DR_e = DB_e;
+ DR_e = DB_e
+ (1024 - 128)
;
DR_f = SB_f << (52 - 23);
goto pack_d;
}