Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for multiplication (0.2 sec)

  1. src/runtime/mksizeclasses.go

    		computeDivMagic(&classes[i])
    	}
    
    	return classes
    }
    
    // computeDivMagic checks that the division required to compute object
    // index from span offset can be computed using 32-bit multiplication.
    // n / c.size is implemented as (n * (^uint32(0)/uint32(c.size) + 1)) >> 32
    // for all 0 <= n <= c.npages * pageSize
    func computeDivMagic(c *class) {
    	// divisor
    	d := c.size
    	if d == 0 {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. src/internal/bytealg/bytealg.go

    // If MaxLen is not 0, make sure MaxLen >= 4.
    var MaxLen int
    
    // PrimeRK is the prime base used in Rabin-Karp algorithm.
    const PrimeRK = 16777619
    
    // HashStr returns the hash and the appropriate multiplicative
    // factor for use in Rabin-Karp algorithm.
    func HashStr[T string | []byte](sep T) (uint32, uint32) {
    	hash := uint32(0)
    	for i := 0; i < len(sep); i++ {
    		hash = hash*PrimeRK + uint32(sep[i])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/fiat/p256_invert.go

    //
    // If x == 0, Invert returns e = 0.
    func (e *P256Element) Invert(x *P256Element) *P256Element {
    	// Inversion is implemented as exponentiation with exponent p − 2.
    	// The sequence of 12 multiplications and 255 squarings is derived from the
    	// following addition chain generated with github.com/mmcloughlin/addchain v0.4.0.
    	//
    	//	_10     = 2*1
    	//	_11     = 1 + _10
    	//	_110    = 2*_11
    	//	_111    = 1 + _110
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/fiat/p521_invert.go

    //
    // If x == 0, Invert returns e = 0.
    func (e *P521Element) Invert(x *P521Element) *P521Element {
    	// Inversion is implemented as exponentiation with exponent p − 2.
    	// The sequence of 13 multiplications and 520 squarings is derived from the
    	// following addition chain generated with github.com/mmcloughlin/addchain v0.4.0.
    	//
    	//	_10       = 2*1
    	//	_11       = 1 + _10
    	//	_1100     = _11 << 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/raceprof.go

    // We want a bunch of different profile stacks that collide in the
    // hash table maintained in runtime/cpuprof.go. This code knows the
    // size of the hash table (1 << 10) and knows that the hash function
    // is simply multiplicative.
    void raceprofTraceback(void* parg) {
    	struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg);
    	raceprofCount++;
    	arg->buf[0] = raceprofCount * (1 << 10);
    	arg->buf[1] = 0;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 18:13:14 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/crypto/internal/nistec/fiat/p224_invert.go

    //
    // If x == 0, Invert returns e = 0.
    func (e *P224Element) Invert(x *P224Element) *P224Element {
    	// Inversion is implemented as exponentiation with exponent p − 2.
    	// The sequence of 11 multiplications and 223 squarings is derived from the
    	// following addition chain generated with github.com/mmcloughlin/addchain v0.4.0.
    	//
    	//	_10     = 2*1
    	//	_11     = 1 + _10
    	//	_110    = 2*_11
    	//	_111    = 1 + _110
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/fiat/p384_invert.go

    //
    // If x == 0, Invert returns e = 0.
    func (e *P384Element) Invert(x *P384Element) *P384Element {
    	// Inversion is implemented as exponentiation with exponent p − 2.
    	// The sequence of 15 multiplications and 383 squarings is derived from the
    	// following addition chain generated with github.com/mmcloughlin/addchain v0.4.0.
    	//
    	//	_10     = 2*1
    	//	_11     = 1 + _10
    	//	_110    = 2*_11
    	//	_111    = 1 + _110
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/p224_sqrt.go

    			} else {
    				p224GG[i].Square(&p224GG[i-1])
    			}
    		}
    	})
    
    	// r <- x^((q+1)/2) = x^(2^127)
    	// v <- x^q = x^(2^128-1)
    
    	// Compute x^(2^127-1) first.
    	//
    	// The sequence of 10 multiplications and 126 squarings is derived from the
    	// following addition chain generated with github.com/mmcloughlin/addchain v0.4.0.
    	//
    	//	_10      = 2*1
    	//	_11      = 1 + _10
    	//	_110     = 2*_11
    	//	_111     = 1 + _110
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.1K bytes
    - Viewed (1)
  9. src/crypto/internal/nistec/fiat/generate.go

    //
    // If x == 0, Invert returns e = 0.
    func (e *Element) Invert(x *Element) *Element {
    	// Inversion is implemented as exponentiation with exponent p − 2.
    	// The sequence of {{ .Ops.Adds }} multiplications and {{ .Ops.Doubles }} squarings is derived from the
    	// following addition chain generated with {{ .Meta.Module }} {{ .Meta.ReleaseTag }}.
    	//
    	{{- range lines (format .Script) }}
    	//	{{ . }}
    	{{- end }}
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 9.1K bytes
    - Viewed (0)
Back to top