Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Multiplication (0.4 sec)

  1. 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)
  2. src/crypto/ecdh/nist.go

    	// invalid scalars and the zero value. BytesX returns an error for the point
    	// at infinity, but in a prime order group such as the NIST curves that can
    	// only be the result of a scalar multiplication if one of the inputs is the
    	// zero scalar or the point at infinity.
    
    	if boring.Enabled {
    		return boring.ECDH(local.boring, remote.boring)
    	}
    
    	boring.Unreachable()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. 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)
Back to top