- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for Negate (0.32 sec)
-
src/crypto/internal/edwards25519/field/fe.go
v.l2 = (a.l2 + 0xFFFFFFFFFFFFE) - b.l2 v.l3 = (a.l3 + 0xFFFFFFFFFFFFE) - b.l3 v.l4 = (a.l4 + 0xFFFFFFFFFFFFE) - b.l4 return v.carryPropagate() } // Negate sets v = -a, and returns v. func (v *Element) Negate(a *Element) *Element { return v.Subtract(feZero, a) } // Invert sets v = 1/z mod p, and returns v. // // If z == 0, Invert returns v = 0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 11.8K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalar.go
} // Subtract sets s = x - y mod l, and returns s. func (s *Scalar) Subtract(x, y *Scalar) *Scalar { // s = -1 * y + x mod l fiatScalarSub(&s.s, &x.s, &y.s) return s } // Negate sets s = -x mod l, and returns s. func (s *Scalar) Negate(x *Scalar) *Scalar { // s = -1 * x + 0 mod l fiatScalarOpp(&s.s, &x.s) return s } // Multiply sets s = x * y mod l, and returns s. func (s *Scalar) Multiply(x, y *Scalar) *Scalar {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 10.8K bytes - Viewed (0) -
src/runtime/crash_test.go
x, y *int } func (p *point) negate() { *p.x = *p.x * -1 *p.y = *p.y * -1 } // Test for issue #10152. func TestPanicInlined(t *testing.T) { defer func() { r := recover() if r == nil { t.Fatalf("recover failed") } buf := make([]byte, 2048) n := runtime.Stack(buf, false) buf = buf[:n] if !bytes.Contains(buf, []byte("(*point).negate(")) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/crypto/ed25519/ed25519.go
} S, err := edwards25519.NewScalar().SetCanonicalBytes(sig[32:]) if err != nil { return false } // [S]B = R + [k]A --> [k](-A) + [S]B = R minusA := (&edwards25519.Point{}).Negate(A) R := (&edwards25519.Point{}).VarTimeDoubleScalarBaseMult(k, minusA, S) return bytes.Equal(sig[:32], R.Bytes())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 11.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java
.test(); } @J2ktIncompatible @GwtIncompatible public void testRoundToDouble_negativeWayTooBig() { BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate(); new RoundToDoubleTester(bi) .setExpectation(-Double.MAX_VALUE, DOWN, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN) .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR) .roundUnnecessaryShouldThrow()
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 17:58:33 UTC 2024 - 27.8K bytes - Viewed (0) -
cmd/import-boss/main.go
errs = append(errs, fmt.Errorf("%q %s %q is forbidden by %s", pkg.PkgPath, relate(imp), imp, file.path)) decided = true break // no further rules, next file } } if decided { break // no further files, next import } } if matched && !decided { klog.V(5).Infof("%q %s %q did not match any rule", pkg, relate(imp), imp)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation_test.go
}, { name: "service cidr IPv4 is too big but gate enbled", expectErrors: false, options: makeOptionsWithCIDRs("10.0.0.0/8", ""), gate: true, }, { name: "service cidr IPv6 is too big but gate enbled", expectErrors: false, options: makeOptionsWithCIDRs("2001:db8::/64", ""), gate: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/pod_devices_test.go
resource2 = "example2.com/resource2" ) testCases := []struct { description string gate bool responsesPerResource map[string]*pluginapi.ContainerAllocateResponse expected *DeviceRunContainerOptions }{ { description: "empty response", gate: false, responsesPerResource: map[string]*pluginapi.ContainerAllocateResponse{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.3K bytes - Viewed (0) -
pkg/features/kube_features.go
// We want to avoid a proliferation of feature gates. This feature gate: // - will guard *a group* of cpumanager options whose quality level is alpha. // - will never graduate to beta or stable. // See https://groups.google.com/g/kubernetes-sig-architecture/c/Nxsc7pfe5rw/m/vF2djJh0BAAJ // for details about the removal of this feature gate. CPUManagerPolicyAlphaOptions featuregate.Feature = "CPUManagerPolicyAlphaOptions"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 22:51:23 UTC 2024 - 45.2K bytes - Viewed (0) -
pkg/registry/policy/poddisruptionbudget/strategy_test.go
} func TestPodDisruptionBudgetStrategy(t *testing.T) { tests := map[string]bool{ "PodDisruptionBudget strategy with PDBUnhealthyPodEvictionPolicy feature gate disabled": false, "PodDisruptionBudget strategy with PDBUnhealthyPodEvictionPolicy feature gate enabled": true, } for name, enableUnhealthyPodEvictionPolicy := range tests { t.Run(name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19.2K bytes - Viewed (0)