Skip to content

Commit 5a9f5fd

Browse files
author
Matt Godbolt
committed
More wip
1 parent 4fd1a59 commit 5a9f5fd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ <h3>Helping the compiler out?</h3>
934934
}
935935
</code></pre>
936936
</section>
937+
<!-- https://github.com/apple/swift/commit/21ab99bf80b91a025405d9d59277839074a840d7 -->
937938
</section>
938939

939940

@@ -1434,10 +1435,11 @@ <h3>log10(x)</h3>
14341435
<section>
14351436
<h3>log10(x)</h3>
14361437
<pre><code class="ce cpp" data-trim>
1438+
/// g71:-O2 -march=haswell
14371439
constexpr unsigned PowersOf10[] = {
1438-
1, 10, 100, 1000, 10000, 100000,
1439-
1000000, 10000000, 100000000,
1440-
1000000000 }; // etc
1440+
1, 10, 100, 1000, 10000, 100000, 1000000,
1441+
10000000, 100000000, 1000000000
1442+
};
14411443

14421444
unsigned numDigits(unsigned v) {
14431445
auto log2 = 31 - __builtin_clz(v);
@@ -1447,7 +1449,6 @@ <h3>log10(x)</h3>
14471449
}
14481450
</code></pre>
14491451
</section>
1450-
14511452
</section>
14521453

14531454

0 commit comments

Comments
 (0)