- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Mult32 (0.14 sec)
-
src/crypto/internal/edwards25519/field/fe_bench_test.go
b.ResetTimer() for i := 0; i < b.N; i++ { x.Invert(x) } } func BenchmarkMult32(b *testing.B) { x := new(Element).One() b.ResetTimer() for i := 0; i < b.N; i++ { x.Mult32(x, 0xaa42aa42) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 18:45:00 UTC 2022 - 924 bytes - Viewed (0) -
src/crypto/internal/edwards25519/field/fe_alias_test.go
{name: "Set", oneArgF: (*Element).Set}, {name: "Square", oneArgF: (*Element).Square}, {name: "Pow22523", oneArgF: (*Element).Pow22523}, { name: "Mult32", oneArgF: func(v, x *Element) *Element { return v.Mult32(x, 0xffffffff) }, }, {name: "Multiply", twoArgsF: (*Element).Multiply}, {name: "Add", twoArgsF: (*Element).Add}, {name: "Subtract", twoArgsF: (*Element).Subtract}, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 3.4K bytes - Viewed (0) -
src/crypto/ecdh/x25519.go
z2.Multiply(&z2, &tmp1) tmp0.Square(&tmp1) tmp1.Square(&x2) x3.Add(&z3, &z2) z2.Subtract(&z3, &z2) x2.Multiply(&tmp1, &tmp0) tmp1.Subtract(&tmp1, &tmp0) z2.Square(&z2) z3.Mult32(&tmp1, 121666) x3.Square(&x3) tmp0.Add(&tmp0, &z3) z3.Multiply(&x1, &z2) z2.Multiply(&tmp1, &tmp0) } x2.Swap(&x3, swap) z2.Swap(&z3, swap) z2.Invert(&z2) x2.Multiply(&x2, &z2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 3.1K bytes - Viewed (0) -
src/crypto/internal/edwards25519/field/fe.go
feMul(v, x, y) return v } // Square sets v = x * x, and returns v. func (v *Element) Square(x *Element) *Element { feSquare(v, x) return v } // Mult32 sets v = x * y, and returns v. func (v *Element) Mult32(x *Element, y uint32) *Element { x0lo, x0hi := mul51(x.l0, y) x1lo, x1hi := mul51(x.l1, y) x2lo, x2hi := mul51(x.l2, y) x3lo, x3hi := mul51(x.l3, y) x4lo, x4hi := mul51(x.l4, y)
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/field/fe_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 13.9K bytes - Viewed (0) -
test/float_lit2.go
{0x7f7ffffe, float32(max32 - ulp32), float32(max32 - ulp32/2), "max32 - ulp32/2"}, {0x7f7ffffe, float32(max32 - ulp32), float32(max32 - ulp32 + ulp32/2), "max32 - ulp32 + ulp32/2"}, {0x7f7fffff, float32(max32), float32(max32 - ulp32 + ulp32/2 + ulp32/two64), "max32 - ulp32 + ulp32/2 + ulp32/two64"}, {0x7f7fffff, float32(max32), float32(max32 - ulp32/2 + ulp32/two64), "max32 - ulp32/2 + ulp32/two64"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:39:47 UTC 2016 - 7.9K bytes - Viewed (0) -
test/float_lit3.go
two512 = two256 * two256 two768 = two512 * two256 two1024 = two512 * two512 ulp32 = two128 / two24 max32 = two128 - ulp32 ulp64 = two1024 / two53 max64 = two1024 - ulp64 ) var x = []interface{}{ float32(max32 + ulp32/2 - 1), // ok float32(max32 + ulp32/2 - two128/two256), // ok float32(max32 + ulp32/2), // ERROR "constant 3\.40282e\+38 overflows float32|cannot convert.*to type float32"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 03 16:24:32 UTC 2021 - 1.7K bytes - Viewed (0) -
src/strconv/atof_test.go
test.in, out32, err, test.out, test.err, out) } } } for _, test := range atof32tests { out, err := ParseFloat(test.in, 32) out32 := float32(out) if float64(out32) != out { t.Errorf("ParseFloat(%v, 32) = %v, not a float32 (closest is %v)", test.in, out, float64(out32)) continue } outs := FormatFloat(float64(out32), 'g', -1, 32) if outs != test.out || !reflect.DeepEqual(err, test.err) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 23.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
// x * (D * z) = D * (x * z) (Mul64 (Mul64 i:(Const64 <t>) z) x) && (z.Op != OpConst64 && x.Op != OpConst64) => (Mul64 i (Mul64 <t> x z)) (Mul32 (Mul32 i:(Const32 <t>) z) x) && (z.Op != OpConst32 && x.Op != OpConst32) => (Mul32 i (Mul32 <t> x z)) (Mul16 (Mul16 i:(Const16 <t>) z) x) && (z.Op != OpConst16 && x.Op != OpConst16) => (Mul16 i (Mul16 <t> x z))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
src/math/rand/v2/rand.go
// x1:x0 := r.Uint64() // 0:hi, lo1:lo0 := bits.Mul64(x1:x0, 0:n) // Writing out the multiplication in terms of bits.Mul32 allows // using direct hardware instructions and avoiding // the computations involving these zeros. x := r.Uint64() lo1a, lo0 := bits.Mul32(uint32(x), n) hi, lo1b := bits.Mul32(uint32(x>>32), n) lo1, c := bits.Add32(lo1a, lo1b, 0) hi += c if lo1 == 0 && lo0 < uint32(n) { n64 := uint64(n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0)