- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMod64Unsigned (1.22 sec)
-
src/cmd/compile/internal/test/math_test.go
} Output = int(r) } func BenchmarkMod64SmallNegBoth(b *testing.B) { r := int64(1) for i := 1; i <= b.N; i++ { r = -(int64(i) + r) % -int64(i) } Output = int(r) } func BenchmarkMod64Unsigned(b *testing.B) { r := uint64(1) for i := 1; i <= b.N; i++ { r = (uint64(0x7fffffffffffffff) - uint64(i) - (r & 1)) % uint64(i) } Output = int(r) } func BenchmarkMod64(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 3.4K bytes - Viewed (0)