Skip to content

Commit

Permalink
Fixed long lines in std/math.d
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed May 11, 2016
1 parent fafb15b commit fdffbeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -4135,7 +4135,9 @@ real round(real x) @trusted nothrow @nogc
version (CRuntime_Microsoft)
{
auto old = FloatingPointControl.getControlState();
FloatingPointControl.setControlState((old & ~FloatingPointControl.ROUNDING_MASK) | FloatingPointControl.roundToZero);
FloatingPointControl.setControlState(
(old & ~FloatingPointControl.ROUNDING_MASK) | FloatingPointControl.roundToZero
);
x = rint((x >= 0) ? x + 0.5 : x - 0.5);
FloatingPointControl.setControlState(old);
return x;
Expand Down

0 comments on commit fdffbeb

Please sign in to comment.