Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,535 for Comparer (0.12 sec)

  1. src/sync/atomic/value.go

    			continue
    		}
    		// First store completed. Check type and overwrite data.
    		if typ != np.typ {
    			panic("sync/atomic: compare and swap of inconsistently typed value into Value")
    		}
    		// Compare old and current via runtime equality check.
    		// This allows value types to be compared, something
    		// not offered by the package functions.
    		// CompareAndSwapPointer below only ensures vp.data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. test/typeparam/orderedmap.go

    func _New[K, V any](compare func(K, K) int) *_Map[K, V] {
    	return &_Map[K, V]{compare: compare}
    }
    
    // _NewOrdered returns a new map whose key is an ordered type.
    // This is like _New, but does not require providing a compare function.
    // The map compare function uses the obvious key ordering.
    func _NewOrdered[K Ordered, V any]() *_Map[K, V] {
    	return _New[K, V](func(k1, k2 K) int {
    		switch {
    		case k1 < k2:
    			return -1
    		case k1 == k2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  3. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

            for (String version : args) {
                ComparableVersion c = new ComparableVersion(version);
    
                if (prev != null) {
                    int compare = prev.compareTo(c);
                    System.out.println("   " + prev.toString() + ' ' + ((compare == 0) ? "==" : ((compare < 0) ? "<" : ">"))
                            + ' ' + version);
                }
    
                System.out.println(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 26K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/version/helpers.go

    	if vType != versionTypeGA {
    		if minorVersion, err = strconv.Atoi(submatches[3]); err != nil {
    			return 0, 0, 0, false
    		}
    	}
    	return majorVersion, vType, minorVersion, true
    }
    
    // CompareKubeAwareVersionStrings compares two kube-like version strings.
    // Kube-like version strings are starting with a v, followed by a major version, optional "alpha" or "beta" strings
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 20 08:40:04 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  5. cmd/leak-detect_test.go

    	snapshot := LeakDetect{
    		relevantRoutines: make(map[string]bool),
    	}
    	for _, g := range pickRelevantGoroutines() {
    		snapshot.relevantRoutines[g] = true
    	}
    	return snapshot
    }
    
    // CompareCurrentSnapshot - Compares the initial relevant stack trace with the current one (during the time of invocation).
    func (initialSnapShot LeakDetect) CompareCurrentSnapshot() []string {
    	var stackDiff []string
    	for _, g := range pickRelevantGoroutines() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Floats.java

       * to the JDK until JDK 7.
       *
       * @param a the first {@code float} to compare
       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Floats.java

       * to the JDK until JDK 7.
       *
       * @param a the first {@code float} to compare
       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/http-basic-auth.md

    #### Fix it with `secrets.compare_digest()`
    
    But in our code we are actually using `secrets.compare_digest()`.
    
    In short, it will take the same time to compare `stanleyjobsox` to `stanleyjobson` than it takes to compare `johndoe` to `stanleyjobson`. And the same for the password.
    
    That way, using `secrets.compare_digest()` in your application code, it will be safe against this whole range of security attacks.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 14:33:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/float_test.go

    package test
    
    import (
    	"math"
    	"testing"
    )
    
    //go:noinline
    func compare1(a, b float64) bool {
    	return a < b
    }
    
    //go:noinline
    func compare2(a, b float32) bool {
    	return a < b
    }
    
    func TestFloatCompare(t *testing.T) {
    	if !compare1(3, 5) {
    		t.Errorf("compare1 returned false")
    	}
    	if !compare2(3, 5) {
    		t.Errorf("compare2 returned false")
    	}
    }
    
    func TestFloatCompareFolded(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code char} arrays <a
       * href="http://en.wikipedia.org/wiki/Lexicographical_order">lexicographically</a>; not advisable
       * for sorting user-visible strings as the ordering may not match the conventions of the user's
       * locale. That is, it compares, using {@link #compare(char, char)}), the first pair of values
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top