- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkLeadingZeros (0.12 sec)
-
src/math/bits/bits_test.go
var Input uint64 = DeBruijn64 // Exported (global) variable to store function results // during benchmarking to ensure side-effect free calls // are not optimized away. var Output int func BenchmarkLeadingZeros(b *testing.B) { var s int for i := 0; i < b.N; i++ { s += LeadingZeros(uint(Input) >> (uint(i) % UintSize)) } Output = s } func BenchmarkLeadingZeros8(b *testing.B) { var s int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 22 20:11:06 UTC 2020 - 32.5K bytes - Viewed (0)