- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 88 for S1 (0.08 sec)
-
src/runtime/runtime_test.go
v := *(*byte)(unsafe.Pointer(addr)) t.Logf("addr %#x: %#x\n", addr, v) } func eqstring_generic(s1, s2 string) bool { if len(s1) != len(s2) { return false } // optimization in assembly versions: // if s1.str == s2.str { return true } for i := 0; i < len(s1); i++ { if s1[i] != s2[i] { return false } } return true } func TestEqString(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/crypto/elliptic/params.go
h.Add(h, curve.P) } i := new(big.Int).Lsh(h, 1) i.Mul(i, i) j := new(big.Int).Mul(h, i) s1 := new(big.Int).Mul(y1, z2) s1.Mul(s1, z2z2) s1.Mod(s1, curve.P) s2 := new(big.Int).Mul(y2, z1) s2.Mul(s2, z1z1) s2.Mod(s2, curve.P) r := new(big.Int).Sub(s2, s1) if r.Sign() == -1 { r.Add(r, curve.P) } yEqual := r.Sign() == 0 if xEqual && yEqual {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 17:46:09 UTC 2024 - 9.6K bytes - Viewed (0) -
src/math/rand/rand_test.go
// disagree, or <0 if the lengths are the same and all elements // are identical. func compareUint32Slices(s1, s2 []uint32) int { if len(s1) != len(s2) { if len(s1) > len(s2) { return len(s2) + 1 } return len(s1) + 1 } for i := range s1 { if s1[i] != s2[i] { return i } } return -1 } // compareFloat32Slices returns the first index where the two slices
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.9K bytes - Viewed (0) -
pkg/slices/slices_test.go
}, want: []*string{}, }, { name: "slice with 1 element", args: args[string]{ []string{s1}, }, want: []*string{&s1}, }, { name: "slice with many elements", args: args[string]{ []string{s1, s2, s3}, }, want: []*string{&s1, &s2, &s3}, }, } intTests := []testCase[int]{ { name: "empty slice", args: args[int]{ []int{},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
src/encoding/json/encode_test.go
CaseName: Name("DominantField"), // Both S1 and S2 have a field named X, but since S has an X field as // well, it takes precedence over S1.X and S2.X. makeInput: func() any { type ( S1 struct{ x, X int } S2 struct{ x, X int } S struct { S1 S2 x, X int } ) return S{S1{1, 2}, S2{3, 4}, 5, 6} }, want: `{"X":6}`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
src/runtime/rand.go
// http://simul.iro.umontreal.ca/testu01/tu01.html t := (*[2]uint32)(unsafe.Pointer(&mp.cheaprand)) s1, s0 := t[0], t[1] s1 ^= s1 << 17 s1 = s1 ^ s0 ^ s1>>7 ^ s0>>16 t[0], t[1] = s0, s1 return s0 + s1 } // cheaprand64 is a non-cryptographic-quality 63-bit random generator // suitable for calling at very high frequency (such as during sampling decisions).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 14:32:47 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc
// * qn = quantized value for tensor n // * sn = scale for tensor n // * zn = zero point for tensor n // // r3 = r1 * r2 // = s1 (q1 - z1) * s2 (q2 - z2) // = s1 s2 (q1 q2 - q1 z2 - q2 z1 + z1 z2) // // * z2 is zero, because it assumes symmetric quantization for the filter: // // = s1 s2 (q1 q2 - q2 z1) // // In StableHLO text representation, the pattern is as the following // (simplified): // // ```
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 64.6K bytes - Viewed (0) -
pkg/kube/multicluster/secretcontroller_test.go
c := buildTestController(t, false) c.AddSecret("s0", "c0") c.AddSecret("s1", "c1") c.Run(stop) // before sync assert.EventuallyEqual(t, c.controller.ListRemoteClusters, []cluster.DebugInfo{ {ID: "config", SyncStatus: "syncing"}, {ID: "c0", SecretName: "istio-system/s0", SyncStatus: "syncing"}, {ID: "c1", SecretName: "istio-system/s1", SyncStatus: "syncing"}, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 17.6K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaReceiverValue.kt
public val expression: KtExpression by validityAsserted(expression) /** * Whether safe navigation is used on this receiver. For example * ``` * fun test(s1: String?, s2: String) { * s1?.length // explicit receiver `s1` has `isSafeNavigation = true` * s2.length // explicit receiver `s2` has `isSafeNavigation = false` * } * ``` */
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 16:16:39 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0)