Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for Multiplication (0.27 sec)

  1. src/math/big/calibrate_test.go

    	return time.Duration(res.NsPerOp())
    }
    
    func computeKaratsubaThresholds() {
    	fmt.Printf("Multiplication times for varying Karatsuba thresholds\n")
    	fmt.Printf("(run repeatedly for good results)\n")
    
    	// determine Tk, the work load execution time using basic multiplication
    	Tb := measureKaratsuba(1e9) // th == 1e9 => Karatsuba multiplication disabled
    	fmt.Printf("Tb = %10s\n", Tb)
    
    	// thresholds
    	th := 4
    	th1 := -1
    	th2 := -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe_generic.go

    func feMulGeneric(v, a, b *Element) {
    	a0 := a.l0
    	a1 := a.l1
    	a2 := a.l2
    	a3 := a.l3
    	a4 := a.l4
    
    	b0 := b.l0
    	b1 := b.l1
    	b2 := b.l2
    	b3 := b.l3
    	b4 := b.l4
    
    	// Limb multiplication works like pen-and-paper columnar multiplication, but
    	// with 51-bit limbs instead of digits.
    	//
    	//                          a4   a3   a2   a1   a0  x
    	//                          b4   b3   b2   b1   b0  =
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256_ordinv.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (amd64 || arm64) && !purego
    
    package nistec
    
    import "errors"
    
    // Montgomery multiplication modulo org(G). Sets res = in1 * in2 * R⁻¹.
    //
    //go:noescape
    func p256OrdMul(res, in1, in2 *p256OrdElement)
    
    // Montgomery square modulo org(G), repeated n times (n >= 1).
    //
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    			h1, c = bits.Add64(h1, binary.LittleEndian.Uint64(buf[8:16]), c)
    			h2 += c
    
    			msg = nil
    		}
    
    		// Multiplication of big number limbs is similar to elementary school
    		// columnar multiplication. Instead of digits, there are 64-bit limbs.
    		//
    		// We are multiplying a 3 limbs number, h, by a 2 limbs number, r.
    		//
    		//                        h2    h1    h0  x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/crypto/internal/bigmod/nat.go

    // n = len(m.nat.limbs).
    //
    // Faster Montgomery multiplication replaces standard modular multiplication for
    // numbers in this representation.
    //
    // This assumes that x is already reduced mod m.
    func (x *Nat) montgomeryRepresentation(m *Modulus) *Nat {
    	// A Montgomery multiplication (which computes a * b / R) by R * R works out
    	// to a multiplication by R, which takes the value out of the Montgomery domain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/sys/cpu/cpu.go

    	HasASIMD    bool // Advanced SIMD (always available)
    	HasEVTSTRM  bool // Event stream support
    	HasAES      bool // AES hardware implementation
    	HasPMULL    bool // Polynomial multiplication instruction set
    	HasSHA1     bool // SHA1 hardware implementation
    	HasSHA2     bool // SHA2 hardware implementation
    	HasCRC32    bool // CRC32 hardware implementation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s

    // register is 128-bits wide and so holds 2 of these elements.
    // Using 26-bit limbs allows us plenty of headroom to accommodate
    // accumulations before and after multiplication without
    // overflowing either 32-bits (before multiplication) or 64-bits
    // (after multiplication).
    //
    // In order to parallelise the operations required to calculate
    // the sum we use two separate accumulators and then sum those
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  8. src/math/big/floatconv.go

    	// may be a nonzero exponent exp. The radix point amounts to a
    	// division by b**(-fcount). An exponent means multiplication by
    	// ebase**exp. Finally, mantissa normalization (shift left) requires
    	// a correcting multiplication by 2**(-shiftcount). Multiplications
    	// are commutative, so we can apply them in any order as long as there
    	// is no loss of precision. We only have powers of 2 and 10, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. src/runtime/internal/math/math.go

    // license that can be found in the LICENSE file.
    
    package math
    
    import "internal/goarch"
    
    const MaxUintptr = ^uintptr(0)
    
    // MulUintptr returns a * b and whether the multiplication overflowed.
    // On supported platforms this is an intrinsic lowered by the compiler.
    func MulUintptr(a, b uintptr) (uintptr, bool) {
    	if a|b < 1<<(4*goarch.PtrSize) || a == 0 {
    		return a * b, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:03:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. src/math/big/ratconv.go

    	// division by base**(-fcount), which equals a multiplication by
    	// base**fcount. An exponent means multiplication by ebase**exp.
    	// Multiplications are commutative, so we can apply them in any
    	// order. We only have powers of 2 and 10, and we split powers
    	// of 10 into the product of the same powers of 2 and 5. This
    	// may reduce the size of shift/multiplication factors or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top