Skip to content

Commit

Permalink
Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Jan 17, 2018
1 parent fcae11f commit 84202fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -5412,7 +5412,7 @@ if (isFloatingPoint!(X))
* $(D true) if $(D_PARAM x) is finite.
*/
bool isFinite(X)(X x) @trusted pure nothrow @nogc
if (isFloatingPoint!X)
if (isFloatingPoint!X)
{
alias F = floatTraits!(X);
ushort* pe = cast(ushort *)&x;
Expand Down Expand Up @@ -5460,7 +5460,7 @@ bool isFinite(X)(X x) @trusted pure nothrow @nogc
* be converted to normal reals.
*/
bool isNormal(X)(X x) @trusted pure nothrow @nogc
if (isFloatingPoint!X)
if (isFloatingPoint!X)
{
alias F = floatTraits!(X);
static if (F.realFormat == RealFormat.ibmExtended)
Expand Down Expand Up @@ -5507,7 +5507,7 @@ bool isNormal(X)(X x) @trusted pure nothrow @nogc
* $(D true) if $(D_PARAM x) is a denormal number.
*/
bool isSubnormal(X)(X x) @trusted pure nothrow @nogc
if (isFloatingPoint!X)
if (isFloatingPoint!X)
{
/*
Need one for each format because subnormal floats might
Expand Down Expand Up @@ -5713,7 +5713,7 @@ bool isIdentical(real x, real y) @trusted pure nothrow @nogc
* Return 1 if sign bit of e is set, 0 if not.
*/
int signbit(X)(X x) @nogc @trusted pure nothrow
if (isFloatingPoint!X)
if (isFloatingPoint!X)
{
alias F = floatTraits!(X);
return ((cast(ubyte *)&x)[F.SIGNPOS_BYTE] & 0x80) != 0;
Expand Down Expand Up @@ -5815,7 +5815,7 @@ Returns $(D -1) if $(D x < 0), $(D x) if $(D x == 0), $(D 1) if
$(D x > 0), and $(NAN) if x==$(NAN).
*/
F sgn(F)(F x) @safe pure nothrow @nogc
if (isNumeric!F)
if (isNumeric!F)
{
// @@@TODO@@@: make this faster
return x > 0 ? 1 : x < 0 ? -1 : x;
Expand Down Expand Up @@ -6288,7 +6288,7 @@ float nextDown(float x) @safe pure nothrow @nogc
* not equal to y.
*/
T nextafter(T)(const T x, const T y) @safe pure nothrow @nogc
if (isFloatingPoint!T)
if (isFloatingPoint!T)
{
if (x == y) return y;
return ((y>x) ? nextUp(x) : nextDown(x));
Expand Down Expand Up @@ -7525,9 +7525,9 @@ private real polyImpl(real x, in real[] A) @trusted pure nothrow @nogc
pair of elements.
*/
bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
if ((isNumeric!T || (isInputRange!T && isNumeric!(ElementType!T))) &&
(isNumeric!U || (isInputRange!U && isNumeric!(ElementType!U))) &&
isNumeric!V)
if ((isNumeric!T || (isInputRange!T && isNumeric!(ElementType!T))) &&
(isNumeric!U || (isInputRange!U && isNumeric!(ElementType!U))) &&
isNumeric!V)
{
import std.range.primitives : empty, front, isInputRange, popFront;
static if (isInputRange!T)
Expand Down

0 comments on commit 84202fd

Please sign in to comment.