Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkDivconstI64 (0.76 sec)

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

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package test
    
    import (
    	"testing"
    )
    
    var boolres bool
    
    var i64res int64
    
    func BenchmarkDivconstI64(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i64res = int64(i) / 7
    	}
    }
    
    func BenchmarkModconstI64(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i64res = int64(i) % 7
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 00:07:35 UTC 2020
    - 7.7K bytes
    - Viewed (0)
Back to top