Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkMod64SmallNegBoth (0.17 sec)

  1. src/cmd/compile/internal/test/math_test.go

    	Output = int(r)
    }
    
    func BenchmarkMod64SmallNegDividend(b *testing.B) {
    	r := int64(-1)
    	for i := 1; i <= b.N; i++ {
    		r = -(int64(i) - r) % int64(i)
    	}
    	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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top