Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for K2 (0.02 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2));
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2, k3, v3));
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/FarmHashFingerprint64.java

          return shiftMix(y * K2 ^ z * K0) * K2;
        }
        return K2;
      }
    
      private static long hashLength17to32(byte[] bytes, int offset, int length) {
        long mul = K2 + length * 2L;
        long a = load64(bytes, offset) * K1;
        long b = load64(bytes, offset + 8);
        long c = load64(bytes, offset + length - 8) * mul;
        long d = load64(bytes, offset + length - 16) * K2;
        return hashLength16(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 01 22:39:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/FarmHashFingerprint64.java

          return shiftMix(y * K2 ^ z * K0) * K2;
        }
        return K2;
      }
    
      private static long hashLength17to32(byte[] bytes, int offset, int length) {
        long mul = K2 + length * 2L;
        long a = load64(bytes, offset) * K1;
        long b = load64(bytes, offset + 8);
        long c = load64(bytes, offset + length - 8) * mul;
        long d = load64(bytes, offset + length - 16) * K2;
        return hashLength16(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 01 22:39:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/boring.go

    	b.key = key
    	privCache.Put(priv, b)
    	return key, nil
    }
    
    func publicKeyEqual(k1, k2 *PublicKey) bool {
    	return k1.X != nil &&
    		k1.Curve.Params() == k2.Curve.Params() &&
    		k1.X.Cmp(k2.X) == 0 &&
    		k1.Y.Cmp(k2.Y) == 0
    }
    
    func privateKeyEqual(k1, k2 *PrivateKey) bool {
    	return publicKeyEqual(&k1.PublicKey, &k2.PublicKey) &&
    		k1.D.Cmp(k2.D) == 0
    }
    
    func copyPublicKey(k *PublicKey) PublicKey {
    	return PublicKey{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. src/crypto/rsa/boring.go

    	return key, nil
    }
    
    func publicKeyEqual(k1, k2 *PublicKey) bool {
    	return k1.N != nil &&
    		k1.N.Cmp(k2.N) == 0 &&
    		k1.E == k2.E
    }
    
    func copyPublicKey(k *PublicKey) PublicKey {
    	return PublicKey{
    		N: new(big.Int).Set(k.N),
    		E: k.E,
    	}
    }
    
    func privateKeyEqual(k1, k2 *PrivateKey) bool {
    	return publicKeyEqual(&k1.PublicKey, &k2.PublicKey) &&
    		k1.D.Cmp(k2.D) == 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/openapi/maplist_test.go

    					extListType:    listTypeMap,
    					extListMapKeys: []any{"k1", "k2"},
    				}}},
    			items: []interface{}{
    				map[string]interface{}{
    					"k1": "a",
    					"k2": "b",
    					"v1": "a",
    				},
    				map[string]interface{}{
    					"k1": "a",
    					"k2": "b",
    					"v1": "b",
    				},
    				map[string]interface{}{
    					"k1": "x",
    					"k2": "y",
    					"v1": "z",
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 18:08:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/maplist_test.go

    					XListType:    &listTypeMap,
    					XListMapKeys: []string{"k1", "k2"},
    				},
    			},
    			items: []interface{}{
    				map[string]interface{}{
    					"k1": "a",
    					"k2": "b",
    					"v1": "a",
    				},
    				map[string]interface{}{
    					"k1": "a",
    					"k2": "b",
    					"v1": "b",
    				},
    				map[string]interface{}{
    					"k1": "x",
    					"k2": "y",
    					"v1": "z",
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 18:08:11 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue51229.go

    // test case from issue
    
    func equal[M1 ~map[K1]V1, M2 ~map[K2]V2, K1, K2 ~uint32, V1, V2 ~string](m1 M1, m2 M2) bool {
    	if len(m1) != len(m2) {
    		return false
    	}
    	for k, v1 := range m1 {
    		if v2, ok := m2[K2(k)]; !ok || V2(v1) != v2 {
    			return false
    		}
    	}
    	return true
    }
    
    func equalFixed[K1, K2 ~uint32, V1, V2 ~string](m1 map[K1]V1, m2 map[K2]V2) bool {
    	if len(m1) != len(m2) {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/K2IntegrationTest.kt

            assertCanConsumeK2BuildLogic()
        }
    
        @Test
        @Requires(IntegTestPreconditions.NotEmbeddedExecutor::class)
        fun `can try k2 with included build for build logic using kotlin-dsl plugin`() {
    
            // This test doesn't use a .gradle.kts precompiled script because K2 doesn't support scripts yet
    
            withDefaultSettingsIn("build-logic")
            withBuildScriptIn("build-logic", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. test/typeparam/metrics.go

    	m2.Add(2, 2)
    	m2.Add(3, 3)
    	m2.Add(3, 3)
    	k1, k2 := m2.Metrics()
    
    	sort.Ints(k1)
    	w1 := []int{1, 2, 3}
    	if !_SlicesEqual(k1, w1) {
    		panic(fmt.Sprintf("_Metric2.Metrics first slice = %v, want %v", k1, w1))
    	}
    
    	sort.Float64s(k2)
    	w2 := []float64{1, 2, 3}
    	if !_SlicesEqual(k2, w2) {
    		panic(fmt.Sprintf("_Metric2.Metrics first slice = %v, want %v", k2, w2))
    	}
    
    	m3 := _Metric3[string, S, S]{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 4.4K bytes
    - Viewed (0)
Back to top