Skip to content

Commit

Permalink
Fix frexp for systems with 64bit reals
Browse files Browse the repository at this point in the history
  • Loading branch information
jpf91 committed Jan 15, 2014
1 parent 8b4e152 commit 2541ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/math.d
Expand Up @@ -2071,7 +2071,7 @@ real frexp(real value, out int exp) @trusted pure nothrow
else
{
exp = (ex - F.EXPBIAS) >> 4;
vu[F.EXPPOS_SHORT] = cast(ushort)((0x8000 & vu[F.EXPPOS_SHORT]) | 0x3FE0);
vu[F.EXPPOS_SHORT] = cast(ushort)((0x800F & vu[F.EXPPOS_SHORT]) | 0x3FE0);
}
}
else if (!(*vl & 0x7FFF_FFFF_FFFF_FFFF))
Expand Down

0 comments on commit 2541ac2

Please sign in to comment.