Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 741 for bitPos (0.23 sec)

  1. src/net/netip/netip.go

    // It does not allocate. Unlike [Addr.Prefix], [PrefixFrom] does not mask
    // off the host bits of ip.
    //
    // If bits is less than zero or greater than ip.BitLen, [Prefix.Bits]
    // will return an invalid value -1.
    func PrefixFrom(ip Addr, bits int) Prefix {
    	var bitsPlusOne uint8
    	if !ip.isZero() && bits >= 0 && bits <= ip.BitLen() {
    		bitsPlusOne = uint8(bits) + 1
    	}
    	return Prefix{
    		ip:          ip.withoutZone(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/compress/flate/inflate.go

    	fixedOnce.Do(func() {
    		// These come from the RFC section 3.2.6.
    		var bits [288]int
    		for i := 0; i < 144; i++ {
    			bits[i] = 8
    		}
    		for i := 144; i < 256; i++ {
    			bits[i] = 9
    		}
    		for i := 256; i < 280; i++ {
    			bits[i] = 7
    		}
    		for i := 280; i < 288; i++ {
    			bits[i] = 8
    		}
    		fixedHuffmanDecoder.init(bits[:])
    	})
    }
    
    func (f *decompressor) Reset(r io.Reader, dict []byte) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  3. src/net/ip.go

    	return p
    }
    
    // CIDRMask returns an [IPMask] consisting of 'ones' 1 bits
    // followed by 0s up to a total length of 'bits' bits.
    // For a mask of this form, CIDRMask is the inverse of [IPMask.Size].
    func CIDRMask(ones, bits int) IPMask {
    	if bits != 8*IPv4len && bits != 8*IPv6len {
    		return nil
    	}
    	if ones < 0 || ones > bits {
    		return nil
    	}
    	l := bits / 8
    	m := make(IPMask, l)
    	n := uint(ones)
    	for i := 0; i < l; i++ {
    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/rand/v2/rand.go

    	//
    	// We want to compute
    	// 	hi, lo := bits.Mul64(r.Uint64(), n)
    	// In terms of 32-bit halves, this is:
    	// 	x1:x0 := r.Uint64()
    	// 	0:hi, lo1:lo0 := bits.Mul64(x1:x0, 0:n)
    	// Writing out the multiplication in terms of bits.Mul32 allows
    	// using direct hardware instructions and avoiding
    	// the computations involving these zeros.
    	x := r.Uint64()
    	lo1a, lo0 := bits.Mul32(uint32(x), n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			if prefix.Addr() != test.ip {
    				t.Errorf("IP=%s, want %s", prefix.Addr(), test.ip)
    			}
    			if prefix.Bits() != test.bits {
    				t.Errorf("bits=%d, want %d", prefix.Bits(), test.bits)
    			}
    			for _, ip := range test.contains {
    				if !prefix.Contains(ip) {
    					t.Errorf("does not contain %s", ip)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/compress/lzw/reader.go

    }
    
    // readLSB returns the next code for "Least Significant Bits first" data.
    func (r *Reader) readLSB() (uint16, error) {
    	for r.nBits < r.width {
    		x, err := r.r.ReadByte()
    		if err != nil {
    			return 0, err
    		}
    		r.bits |= uint32(x) << r.nBits
    		r.nBits += 8
    	}
    	code := uint16(r.bits & (1<<r.width - 1))
    	r.bits >>= r.width
    	r.nBits -= r.width
    	return code, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:39 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. src/cmd/internal/objabi/reloctype.go

    	// R_ARM64_LDST8 sets a LD/ST immediate value to bits [11:0] of a local address.
    	R_ARM64_LDST8
    
    	// R_ARM64_LDST16 sets a LD/ST immediate value to bits [11:1] of a local address.
    	R_ARM64_LDST16
    
    	// R_ARM64_LDST32 sets a LD/ST immediate value to bits [11:2] of a local address.
    	R_ARM64_LDST32
    
    	// R_ARM64_LDST64 sets a LD/ST immediate value to bits [11:3] of a local address.
    	R_ARM64_LDST64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    // trailing CCC shifted left 2 bits. The two least-significant bits of tccc
    // are the number of trailing non-starters.
    
    const (
    	qcInfoMask      = 0x3F // to clear all but the relevant bits in a qcInfo
    	headerLenMask   = 0x3F // extract the length value from the header byte
    	headerFlagsMask = 0xC0 // extract the qcInfo bits from the header byte
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * ```
     *  0..63 : Length of the UTF-16 sequence that this range maps to. The offset is b2b3.
     * 64..79 : Offset by a fixed negative offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
     * 80..95 : Offset by a fixed positive offset. The bottom 4 bits of b1 are the top 4 bits of the offset.
     *    119 : Ignored.
     *    120 : Valid.
     *    121 : Disallowed
     *    122 : Mapped inline to the sequence: [b2].
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. src/crypto/internal/edwards25519/field/fe.go

    		return nil, errors.New("edwards25519: invalid field element input size")
    	}
    
    	// Bits 0:51 (bytes 0:8, bits 0:64, shift 0, mask 51).
    	v.l0 = byteorder.LeUint64(x[0:8])
    	v.l0 &= maskLow51Bits
    	// Bits 51:102 (bytes 6:14, bits 48:112, shift 3, mask 51).
    	v.l1 = byteorder.LeUint64(x[6:14]) >> 3
    	v.l1 &= maskLow51Bits
    	// Bits 102:153 (bytes 12:20, bits 96:160, shift 6, mask 51).
    	v.l2 = byteorder.LeUint64(x[12:20]) >> 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top