Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 86 for biglen (0.12 sec)

  1. src/syscall/dirent_test.go

    	for {
    		n, err := syscall.ReadDirent(fd, buf)
    		if err == syscall.EINVAL {
    			// On linux, 'man getdents64' says that EINVAL indicates “result buffer is too small”.
    			// Try a bigger buffer.
    			t.Logf("ReadDirent: %v; retrying with larger buffer", err)
    			buf = bytes.Repeat([]byte{0xCD}, len(buf)*2)
    			continue
    		}
    		if err != nil {
    			t.Fatalf("syscall.readdir: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/os/os_windows_test.go

    	if err != nil {
    		return err
    	}
    	defer syscall.CloseHandle(fd)
    
    	buflen := uint32(rdb.header.ReparseDataLength) + uint32(unsafe.Sizeof(rdb.header))
    	var bytesReturned uint32
    	return syscall.DeviceIoControl(fd, windows.FSCTL_SET_REPARSE_POINT,
    		(*byte)(unsafe.Pointer(&rdb.header)), buflen, nil, 0, &bytesReturned, nil)
    }
    
    func createMountPoint(link string, target *reparseData) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. src/net/ip.go

    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    
    	n, i, ok := dtoi(mask)
    	if !ok || i != len(mask) || n < 0 || n > ipAddr.BitLen() {
    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    	m := CIDRMask(n, ipAddr.BitLen())
    	addr16 := ipAddr.As16()
    	return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
    }
    
    func copyIP(x IP) IP {
    	y := make(IP, len(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/math/big/nat.go

    	}
    	return z
    }
    
    func putNat(x *nat) {
    	natPool.Put(x)
    }
    
    var natPool sync.Pool
    
    // bitLen returns the length of x in bits.
    // Unlike most methods, it works even if x is not normalized.
    func (x nat) bitLen() int {
    	// This function is used in cryptographic operations. It must not leak
    	// anything but the Int's sign and bit size through side-channels. Any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. src/crypto/x509/oid.go

    		o &= 0x7f
    		if i != 0 {
    			o |= 0x80
    		}
    		dst = append(dst, o)
    	}
    	return dst
    }
    
    func base128BigIntLength(n *big.Int) int {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return 1
    	}
    	return (n.BitLen() + 6) / 7
    }
    
    func appendBase128BigInt(dst []byte, n *big.Int) []byte {
    	if n.Cmp(big.NewInt(0)) == 0 {
    		return append(dst, 0)
    	}
    
    	for i := base128BigIntLength(n) - 1; i >= 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. cluster/gce/config-common.sh

        suggested_range="10.64.0.0/11"
      fi
      echo "${suggested_range}"
    }
    
    # Calculate ip alias range based on max number of pods.
    # Let pow be the smallest integer which is bigger or equal to log2($1 * 2).
    # (32 - pow) will be returned.
    #
    # $1: The number of max pods limitation.
    function get-alias-range-size() {
      for pow in {0..31}; do
        if (( 1 << pow >= $1 * 2 )); then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 20:06:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/background-tasks.md

    ## Caveat
    
    If you need to perform heavy background computation and you don't necessarily need it to be run by the same process (for example, you don't need to share memory, variables, etc), you might benefit from using other bigger tools like <a href="https://docs.celeryq.dev" class="external-link" target="_blank">Celery</a>.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/runtime/map.go

    	// If we've hit the load factor, get bigger.
    	// Otherwise, there are too many overflow buckets,
    	// so keep the same number of buckets and "grow" laterally.
    	bigger := uint8(1)
    	if !overLoadFactor(h.count+1, h.B) {
    		bigger = 0
    		h.flags |= sameSizeGrow
    	}
    	oldbuckets := h.buckets
    	newbuckets, nextOverflow := makeBucketArray(t, h.B+bigger, nil)
    
    	flags := h.flags &^ (iterator | oldIterator)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  9. cmd/object-api-errors.go

    func (e PartTooSmall) Error() string {
    	return fmt.Sprintf("Part size for %d should be at least 5MB", e.PartNumber)
    }
    
    // PartTooBig returned if size of part is bigger than the allowed limit.
    type PartTooBig struct{}
    
    func (e PartTooBig) Error() string {
    	return "Part size bigger than the allowed limit"
    }
    
    // InvalidETag error returned when the etag has changed on disk
    type InvalidETag struct{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 22:19:00 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. src/math/big/float.go

    // If z's precision is 0, it is changed to the larger of x.BitLen()
    // or 64 (and rounding will have no effect).
    func (z *Float) SetInt(x *Int) *Float {
    	// TODO(gri) can be more efficient if z.prec > 0
    	// but small compared to the size of x, or if there
    	// are many trailing 0's.
    	bits := uint32(x.BitLen())
    	if z.prec == 0 {
    		z.prec = umax32(bits, 64)
    	}
    	z.acc = Exact
    	z.neg = x.neg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top