Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ORD (0.03 sec)

  1. pkg/controller/statefulset/stateful_set_test.go

    			return err
    		}
    		ord := len(pods) - 1
    		if pods, err = om.setPodPending(set, ord); err != nil {
    			return err
    		}
    		pod := getPodAtOrdinal(pods, ord)
    		ssc.addPod(logger, pod)
    		fakeWorker(ssc)
    		pod = getPodAtOrdinal(pods, ord)
    		prev := *pod
    		if pods, err = om.setPodRunning(set, ord); err != nil {
    			return err
    		}
    		pod = getPodAtOrdinal(pods, ord)
    		ssc.updatePod(logger, &prev, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  2. src/syscall/dirent_test.go

    	if len(names) != 10 {
    		t.Errorf("got %d names; expected 10", len(names))
    	}
    	for i, name := range names {
    		ord, err := strconv.Atoi(name[:1])
    		if err != nil {
    			t.Fatalf("names[%d] is non-integer %q: %v", i, names[i], err)
    		}
    		if expected := strings.Repeat(name[:1], filenameMinSize+ord); name != expected {
    			t.Errorf("names[%d] is %q (len %d); expected %q (len %d)", i, name, len(name), expected, len(expected))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_control.go

    			condemned = append(condemned, pod)
    		}
    		// If the ordinal could not be parsed (ord < 0), ignore the Pod.
    	}
    
    	// for any empty indices in the sequence [0,set.Spec.Replicas) create a new Pod at the correct revision
    	for ord := getStartOrdinal(set); ord <= getEndOrdinal(set); ord++ {
    		replicaIdx := ord - getStartOrdinal(set)
    		if replicas[replicaIdx] == nil {
    			replicas[replicaIdx] = newVersionedStatefulSetPod(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  4. 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)
  5. docs/en/docs/tutorial/path-params-numeric-validations.md

    Pass `*`, as the first parameter of the function.
    
    Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value.
    
    ```Python hl_lines="7"
    {!../../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ### Better with `Annotated`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 01 21:05:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/path-params-numeric-validations.md

    Передайте `*` в качестве первого параметра функции.
    
    Python не будет ничего делать с `*`, но он будет знать, что все следующие параметры являются именованными аргументами (парами ключ-значение), также известными как <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>, даже если у них нет значений по умолчанию.
    
    ```Python hl_lines="7"
    {!../../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ### Лучше с `Annotated`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/runtime/proc.go

    	inc   uint32
    }
    
    func (ord *randomOrder) reset(count uint32) {
    	ord.count = count
    	ord.coprimes = ord.coprimes[:0]
    	for i := uint32(1); i <= count; i++ {
    		if gcd(i, count) == 1 {
    			ord.coprimes = append(ord.coprimes, i)
    		}
    	}
    }
    
    func (ord *randomOrder) start(i uint32) randomEnum {
    	return randomEnum{
    		count: ord.count,
    		pos:   i % ord.count,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set_control_test.go

    			return fmt.Errorf("successor %s is Running and Ready while %s is not", pods[idx].Name, pods[idx-1].Name)
    		}
    
    		if ord := idx + getStartOrdinal(set); getOrdinal(pods[idx]) != ord {
    			return fmt.Errorf("pods %s deployed in the wrong order %d", pods[idx].Name, ord)
    		}
    
    		if !storageMatches(set, pods[idx]) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
Back to top