Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toBig (0.04 sec)

  1. src/crypto/internal/edwards25519/field/fe_test.go

    }
    
    func (v *Element) fromDecimal(s string) *Element {
    	n, ok := new(big.Int).SetString(s, 10)
    	if !ok {
    		panic("not a valid decimal: " + s)
    	}
    	return v.fromBig(n)
    }
    
    // toBig returns v as a big.Int.
    func (v *Element) toBig() *big.Int {
    	buf := v.Bytes()
    
    	words := make([]big.Word, 32*8/bits.UintSize)
    	for n := range words {
    		for i := 0; i < bits.UintSize; i += 8 {
    			if len(buf) == 0 {
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    			return bad("func must be func(yield func(...) bool): wrong argument count")
    		case toSig(typ.Params().At(0).Type()) == nil:
    			return bad("func must be func(yield func(...) bool): argument is not func")
    		case typ.Results().Len() != 0:
    			return bad("func must be func(yield func(...) bool): unexpected results")
    		}
    		cb := toSig(typ.Params().At(0).Type())
    		assert(cb.Recv() == nil)
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    			return bad("func must be func(yield func(...) bool): wrong argument count")
    		case toSig(typ.Params().At(0).Type()) == nil:
    			return bad("func must be func(yield func(...) bool): argument is not func")
    		case typ.Results().Len() != 0:
    			return bad("func must be func(yield func(...) bool): unexpected results")
    		}
    		cb := toSig(typ.Params().At(0).Type())
    		assert(cb.Recv() == nil)
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top