Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for multiplication (0.53 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/hash/fnv/fnv.go

    		hash ^= sum64a(c)
    		hash *= prime64
    	}
    	*s = hash
    	return len(data), nil
    }
    
    func (s *sum128) Write(data []byte) (int, error) {
    	for _, c := range data {
    		// Compute the multiplication
    		s0, s1 := bits.Mul64(prime128Lower, s[1])
    		s0 += s[1]<<prime128Shift + prime128Lower*s[0]
    		// Update the values
    		s[1] = s1
    		s[0] = s0
    		s[1] ^= uint64(c)
    	}
    	return len(data), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/math/big/natdiv.go

    which can be handled without a recursive call. That is, the algorithm uses two
    full iterations, each using an n-by-n/2-digit division and an n/2-by-n/2-digit
    multiplication, along with a few n-digit additions and subtractions. The standard
    n-by-n-digit multiplication algorithm requires O(n²) time, making the overall
    algorithm require time T(n) where
    
    	T(n) = 2T(n/2) + O(n) + O(n²)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  7. src/math/big/nat.go

    func karatsuba(z, x, y nat) {
    	n := len(y)
    
    	// Switch to basic multiplication if numbers are odd or small.
    	// (n is always even if karatsubaThreshold is even, but be
    	// conservative)
    	if n&1 != 0 || n < karatsubaThreshold || n < 2 {
    		basicMul(z, x, y)
    		return
    	}
    	// n&1 == 0 && n >= karatsubaThreshold && n >= 2
    
    	// Karatsuba multiplication is based on the observation that
    	// for two numbers x and y with:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/magic.go

    package ssa
    
    import (
    	"math/big"
    	"math/bits"
    )
    
    // So you want to compute x / c for some constant c?
    // Machine division instructions are slow, so we try to
    // compute this division with a multiplication + a few
    // other cheap instructions instead.
    // (We assume here that c != 0, +/- 1, or +/- 2^i.  Those
    // cases are easy to handle in different ways).
    
    // Technique from https://gmplib.org/~tege/divcnst-pldi94.pdf
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. src/runtime/slice.go

    	var overflow bool
    	var lenmem, newlenmem, capmem uintptr
    	// Specialize for common values of et.Size.
    	// For 1 we don't need any division/multiplication.
    	// For goarch.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
    	// For powers of 2, use a variable shift.
    	noscan := !et.Pointers()
    	switch {
    	case et.Size_ == 1:
    		lenmem = uintptr(oldLen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            return self.bias_fn() and self.bias_size != self.filters.shape[-1]
    
          @def_function.function
          def matmul(self, input_tensor: core.Tensor) -> Mapping[str, core.Tensor]:
            """Performs a matrix multiplication.
    
            Depending on self.bias_fn and self.activation_fn, it may add a bias
            term or go through the activaction function.
    
            Args:
              input_tensor: Input tensor to matmul with the filter.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top