Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMulUintptr (0.18 sec)

  1. src/runtime/internal/math/math_test.go

    	{1<<(UintptrSize/2) - 1, 1<<(UintptrSize/2) - 1, false},
    	{1 << (UintptrSize / 2), 1 << (UintptrSize / 2), true},
    	{MaxUintptr >> 32, MaxUintptr >> 32, false},
    	{MaxUintptr, MaxUintptr, true},
    }
    
    func TestMulUintptr(t *testing.T) {
    	for _, test := range mulUintptrTests {
    		a, b := test.a, test.b
    		for i := 0; i < 2; i++ {
    			mul, overflow := MulUintptr(a, b)
    			if mul != a*b || overflow != test.overflow {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 15 19:04:09 UTC 2018
    - 1.7K bytes
    - Viewed (0)
Back to top