Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1275 from MartinNowak/workaround2396
Browse files Browse the repository at this point in the history
workaround Issue 2396 - O(N^2) backend optimizations
  • Loading branch information
schveiguy committed Jun 19, 2015
2 parents 738f4cf + a065244 commit baface5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rt/util/typeinfo.d
Expand Up @@ -138,7 +138,7 @@ unittest

// real types
foreach (F; TypeTuple!(float, double, real))
{
(){ // workaround #2396
alias S = SX!F;
F f1 = +0.0,
f2 = -0.0;
Expand Down Expand Up @@ -182,11 +182,11 @@ unittest
assert(sa1 !is sa2);
ti = typeid(S[3]);
assert(ti.getHash(&sa1) == ti.getHash(&sa2));
}
}();

// imaginary types
foreach (F; TypeTuple!(ifloat, idouble, ireal))
{
(){ // workaround #2396
alias S = SX!F;
F f1 = +0.0i,
f2 = -0.0i;
Expand Down Expand Up @@ -230,11 +230,11 @@ unittest
assert(sa1 !is sa2);
ti = typeid(S[3]);
assert(ti.getHash(&sa1) == ti.getHash(&sa2));
}
}();

// complex types
foreach (F; TypeTuple!(cfloat, cdouble, creal))
{
(){ // workaround #2396
alias S = SX!F;
F[4] f = [+0.0 + 0.0i,
+0.0 - 0.0i,
Expand Down Expand Up @@ -285,5 +285,5 @@ unittest
ti = typeid(S[3]);
assert(ti.getHash(&sa1) == ti.getHash(&sa2));
}
}
}();
}

0 comments on commit baface5

Please sign in to comment.