Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Ord (0.01 sec)

  1. src/crypto/internal/nistec/p256_asm.go

    // p256OrdElement is a P-256 scalar field element in [0, ord(G)-1] in the
    // Montgomery domain (with R 2²⁵⁶) as four uint64 limbs in little-endian order.
    type p256OrdElement [4]uint64
    
    // p256OrdReduce ensures s is in the range [0, ord(G)-1].
    func p256OrdReduce(s *p256OrdElement) {
    	// Since 2 * ord(G) > 2²⁵⁶, we can just conditionally subtract ord(G),
    	// keeping the result if it doesn't underflow.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. src/runtime/map_test.go

    			}
    			// Check that iterating over the map produces at least two different orderings.
    			ord := func() []int {
    				var s []int
    				for key := range m {
    					s = append(s, key)
    				}
    				return s
    			}
    			first := ord()
    			ok := false
    			for try := 0; try < 100; try++ {
    				if !reflect.DeepEqual(first, ord()) {
    					ok = true
    					break
    				}
    			}
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. src/math/big/float.go

    		y.validate()
    	}
    
    	mx := x.ord()
    	my := y.ord()
    	switch {
    	case mx < my:
    		return -1
    	case mx > my:
    		return +1
    	}
    	// mx == my
    
    	// only if |mx| == 1 we have to compare the mantissae
    	switch mx {
    	case -1:
    		return y.ucmp(x)
    	case +1:
    		return x.ucmp(y)
    	}
    
    	return 0
    }
    
    // ord classifies x and returns:
    //
    //	-2 if -Inf == x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top