Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue31084 (0.12 sec)

  1. src/math/big/arith_test.go

    	for _, a := range argshlVU {
    		arg := a
    		testShiftFunc(t, shlVU, arg)
    	}
    
    	for _, a := range argshrVU {
    		arg := a
    		testShiftFunc(t, shrVU, arg)
    	}
    }
    
    func TestIssue31084(t *testing.T) {
    	// compute 10^n via 5^n << n.
    	const n = 165
    	p := nat(nil).expNN(nat{5}, nat{n}, nil, false)
    	p = p.shl(p, n)
    	got := string(p.utoa(10))
    	want := "1" + strings.Repeat("0", n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 19.9K bytes
    - Viewed (0)
Back to top