Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFindBitRange64 (0.36 sec)

  1. src/runtime/mpallocbits_test.go

    			for _, i := range v.frees {
    				b.Free(i, uint(v.npages))
    			}
    			want := makePallocBits(v.afterInv)
    			invertPallocBits(want)
    			checkPallocBits(t, b, want)
    		})
    	}
    }
    
    func TestFindBitRange64(t *testing.T) {
    	check := func(x uint64, n uint, result uint) {
    		i := FindBitRange64(x, n)
    		if result == ^uint(0) && i < 64 {
    			t.Errorf("case (%016x, %d): got %d, want failure", x, n, i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 22:00:17 UTC 2020
    - 13.7K bytes
    - Viewed (0)
Back to top