Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkLeadingZeros8 (0.14 sec)

  1. src/math/bits/bits_test.go

    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
    	for i := 0; i < b.N; i++ {
    		s += LeadingZeros8(uint8(Input) >> (uint(i) % 8))
    	}
    	Output = s
    }
    
    func BenchmarkLeadingZeros16(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)
Back to top