OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e31aa
)
[ARM] 3899/1: Fix the normalization of the denormal double precision number.
author
Takashi Ohmasa
<ohmasa.takashi@com.rmk.(none)>
Mon, 23 Oct 2006 07:30:35 +0000
(08:30 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sat, 28 Oct 2006 09:15:31 +0000
(10:15 +0100)
The significand should be shifted until the value of bit [62] is 1
to normalize the denormal double number.
Signed-off-by: Takashi Ohmasa <ohmasa.takashi@jp.panasonic.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpdouble.c
patch
|
blob
|
history
diff --git
a/arch/arm/vfp/vfpdouble.c
b/arch/arm/vfp/vfpdouble.c
index
4fc05ee
..
e44b9ed
100644
(file)
--- a/
arch/arm/vfp/vfpdouble.c
+++ b/
arch/arm/vfp/vfpdouble.c
@@
-56,7
+56,7
@@
static void vfp_double_normalise_denormal(struct vfp_double *vd)
{
int bits = 31 - fls(vd->significand >> 32);
if (bits == 31)
- bits = 6
2
- fls(vd->significand);
+ bits = 6
3
- fls(vd->significand);
vfp_double_dump("normalise_denormal: in", vd);