[ARM] 3899/1: Fix the normalization of the denormal double precision number.

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>
This commit is contained in:
Takashi Ohmasa 2006-10-23 08:30:35 +01:00 committed by Russell King
parent 75e31aaaf4
commit e816d71a50
1 changed files with 1 additions and 1 deletions

View File

@ -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 = 62 - fls(vd->significand);
bits = 63 - fls(vd->significand);
vfp_double_dump("normalise_denormal: in", vd);