Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/math/big/int_test.go

    	in  string
    	out uint
    }{
    	{"0", 0},
    	{"1", 0},
    	{"-1", 0},
    	{"4", 2},
    	{"-8", 3},
    	{"0x4000000000000000000", 74},
    	{"-0x8000000000000000000", 75},
    }
    
    func TestTrailingZeroBits(t *testing.T) {
    	for i, test := range tzbTests {
    		in, _ := new(Int).SetString(test.in, 0)
    		want := test.out
    		got := in.TrailingZeroBits()
    
    		if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top