Skip to content

Commit

Permalink
[ARM] 3899/1: Fix the normalization of the denormal double precision …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Takashi Ohmasa authored and Russell King committed Oct 28, 2006
1 parent 75e31aa commit e816d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/vfp/vfpdouble.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e816d71

Please sign in to comment.