Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 505 for bitPos (0.19 sec)

  1. src/crypto/rsa/rsa.go

    func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error) {
    	randutil.MaybeReadByte(random)
    
    	if boring.Enabled && random == boring.RandReader && nprimes == 2 &&
    		(bits == 2048 || bits == 3072 || bits == 4096) {
    		bN, bE, bD, bP, bQ, bDp, bDq, bQinv, err := boring.GenerateKeyRSA(bits)
    		if err != nil {
    			return nil, err
    		}
    		N := bbig.Dec(bN)
    		E := bbig.Dec(bE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. src/runtime/arena.go

    	if h.valid+valid <= ptrBits {
    		// Fast path - just accumulate the bits.
    		h.mask |= bits << h.valid
    		h.valid += valid
    		return h
    	}
    	// Too many bits to fit in this word. Write the current word
    	// out and move on to the next word.
    
    	data := h.mask | bits<<h.valid       // mask for this word
    	h.mask = bits >> (ptrBits - h.valid) // leftover for next word
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256_asm.go

    	var b uint64
    	_, b = bits.Sub64(x[0], p256P[0], b)
    	_, b = bits.Sub64(x[1], p256P[1], b)
    	_, b = bits.Sub64(x[2], p256P[2], b)
    	_, b = bits.Sub64(x[3], p256P[3], b)
    	return int(b)
    }
    
    // p256Add sets res = x + y.
    func p256Add(res, x, y *p256Element) {
    	var c, b uint64
    	t1 := make([]uint64, 4)
    	t1[0], c = bits.Add64(x[0], y[0], 0)
    	t1[1], c = bits.Add64(x[1], y[1], c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go

    // ReadDirent reads directory entries from fd and writes them into buf.
    func ReadDirent(fd int, buf []byte) (n int, err error) {
    	// Final argument is (basep *uintptr) and the syscall doesn't take nil.
    	// 64 bits should be enough. (32 bits isn't even on 386). Since the
    	// actual system call is getdirentries64, 64 is a good guess.
    	// TODO(rsc): Can we use a single global basep for all calls?
    	var base = (*uintptr)(unsafe.Pointer(new(uint64)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 705 bytes
    - Viewed (0)
  5. src/runtime/netpoll_windows.go

    	netpollSourceBreak
    	netpollSourceTimer
    )
    
    const (
    	// sourceBits is the number of bits needed to represent a source.
    	// 4 bits can hold 16 different sources, which is more than enough.
    	// It is set to a low value so the overlapped entry key can
    	// contain as much bits as possible for the pollDesc pointer.
    	sourceBits  = 4 // 4 bits can hold 16 different sources, which is more than enough.
    	sourceMasks = 1<<sourceBits - 1
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. src/runtime/cgocheck.go

    	src = add(src, skipBytes)
    	off -= skipBytes
    	size += off
    	var bits uint32
    	for i := uintptr(0); i < size; i += goarch.PtrSize {
    		if i&(goarch.PtrSize*8-1) == 0 {
    			bits = uint32(*ptrmask)
    			ptrmask = addb(ptrmask, 1)
    		} else {
    			bits >>= 1
    		}
    		if off > 0 {
    			off -= goarch.PtrSize
    		} else {
    			if bits&1 != 0 {
    				v := *(*unsafe.Pointer)(add(src, i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/encoding/gob/encgen.go

    		ipart := floatBits(imag(x))
    		state.encodeUint(rpart)
    		state.encodeUint(ipart)`,
    	},
    	{
    		"float32",
    		"Float32",
    		"0",
    		`bits := floatBits(float64(x))
    		state.encodeUint(bits)`,
    	},
    	{
    		"float64",
    		"Float64",
    		"0",
    		`bits := floatBits(x)
    		state.encodeUint(bits)`,
    	},
    	{
    		"int",
    		"Int",
    		"0",
    		`state.encodeInt(int64(x))`,
    	},
    	{
    		"int16",
    		"Int16",
    		"0",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "BitRev8", argLength: 1},  // Reverse the bits in arg[0]
    	{name: "BitRev16", argLength: 1}, // Reverse the bits in arg[0]
    	{name: "BitRev32", argLength: 1}, // Reverse the bits in arg[0]
    	{name: "BitRev64", argLength: 1}, // Reverse the bits in arg[0]
    
    	{name: "PopCount8", argLength: 1},  // Count bits in arg[0]
    	{name: "PopCount16", argLength: 1}, // Count bits in arg[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. src/internal/bisect/bisect.go

    			}
    			fallthrough
    		case '0', '1':
    			bits <<= wid
    			bits |= uint64(c - '0')
    		case 'a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F':
    			if wid != 4 {
    				return nil, &parseError{"invalid pattern syntax: " + pattern}
    			}
    			bits <<= 4
    			bits |= uint64(c&^0x20 - 'A' + 10)
    		case 'y':
    			if i+1 < len(p) && (p[i+1] == '0' || p[i+1] == '1') {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    import (
    	"strings"
    	"syscall"
    )
    
    // HWCAP/HWCAP2 bits. These are exposed by Linux.
    const (
    	hwcap_FP       = 1 << 0
    	hwcap_ASIMD    = 1 << 1
    	hwcap_EVTSTRM  = 1 << 2
    	hwcap_AES      = 1 << 3
    	hwcap_PMULL    = 1 << 4
    	hwcap_SHA1     = 1 << 5
    	hwcap_SHA2     = 1 << 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top