Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,081 for cbits (0.06 sec)

  1. src/vendor/golang.org/x/net/http2/hpack/huffman.go

    	// cur is the bit buffer that has not been fed into n.
    	// cbits is the number of low order bits in cur that are valid.
    	// sbits is the number of bits of the symbol prefix being decoded.
    	cur, cbits, sbits := uint(0), uint8(0), uint8(0)
    	for _, b := range v {
    		cur = cur<<8 | uint(b)
    		cbits += 8
    		sbits += 8
    		for cbits >= 8 {
    			idx := byte(cur >> (cbits - 8))
    			n = n.children[idx]
    			if n == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. src/internal/zstd/bits.go

    	cnt  uint32  // number of valid bits in the bits field
    }
    
    // makeBitReader makes a bit reader starting at off.
    func (r *Reader) makeBitReader(data block, off int) bitReader {
    	return bitReader{
    		r:    r,
    		data: data,
    		off:  uint32(off),
    	}
    }
    
    // moreBits is called to read more bits.
    // This ensures that at least 16 bits are available.
    func (br *bitReader) moreBits() error {
    	for br.cnt < 16 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/math/bits/bits.go

    // To rotate x right by k bits, call RotateLeft8(x, -k).
    //
    // This function's execution time does not depend on the inputs.
    func RotateLeft8(x uint8, k int) uint8 {
    	const n = 8
    	s := uint(k) & (n - 1)
    	return x<<s | x>>(n-s)
    }
    
    // RotateLeft16 returns the value of x rotated left by (k mod 16) bits.
    // To rotate x right by k bits, call RotateLeft16(x, -k).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  4. test/codegen/bits.go

    func bitSetTest(x int) bool {
    	// amd64:"ANDL\t[$]9, AX"
    	// amd64:"CMPQ\tAX, [$]9"
    	return x&9 == 9
    }
    
    // mask contiguous one bits
    func cont1Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]16, [$]47, [$]0,"
    	return x & 0x0000ffffffff0000
    }
    
    // mask contiguous zero bits
    func cont0Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
    	return x & 0xffff00000000ffff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. src/math/big/float.go

    	}
    
    	switch x.form {
    	case finite:
    		// 0 < |x| < +Inf
    
    		const (
    			fbits = 32                //        float size
    			mbits = 23                //        mantissa size (excluding implicit msb)
    			ebits = fbits - mbits - 1 //     8  exponent size
    			bias  = 1<<(ebits-1) - 1  //   127  exponent bias
    			dmin  = 1 - bias - mbits  //  -149  smallest unbiased exponent (denormal)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  6. src/math/big/float_test.go

    // addition/subtraction of arguments represented by Bits values with the
    // respective Float addition/subtraction for a variety of precisions
    // and rounding modes.
    func TestFloatAdd(t *testing.T) {
    	for _, xbits := range bitsList {
    		for _, ybits := range bitsList {
    			// exact values
    			x := xbits.Float()
    			y := ybits.Float()
    			zbits := xbits.add(ybits)
    			z := zbits.Float()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  7. src/runtime/mbitmap.go

    			for ; c >= npattern; c -= npattern {
    				bits |= pattern << nbits
    				nbits += npattern
    				for nbits >= 8 {
    					*dst = uint8(bits)
    					dst = add1(dst)
    					bits >>= 8
    					nbits -= 8
    				}
    			}
    
    			// Add final fragment to bit buffer.
    			if c > 0 {
    				pattern &= 1<<c - 1
    				bits |= pattern << nbits
    				nbits += c
    			}
    			continue Run
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  8. src/math/bits.go

    Russ Cox <******@****.***> 1643915146 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue14651.go

    func test32(a, b float32) {
    	abits := math.Float32bits(a)
    	bbits := math.Float32bits(b)
    	if abits != bbits {
    		panic(fmt.Sprintf("%08x != %08x\n", abits, bbits))
    	}
    }
    
    func test64(a, b float64) {
    	abits := math.Float64bits(a)
    	bbits := math.Float64bits(b)
    	if abits != bbits {
    		panic(fmt.Sprintf("%016x != %016x\n", abits, bbits))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 22 17:09:29 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  10. src/image/jpeg/writer.go

    }
    
    // emit emits the least significant nBits bits of bits to the bit-stream.
    // The precondition is bits < 1<<nBits && nBits <= 16.
    func (e *encoder) emit(bits, nBits uint32) {
    	nBits += e.nBits
    	bits <<= 32 - nBits
    	bits |= e.bits
    	for nBits >= 8 {
    		b := uint8(bits >> 24)
    		e.writeByte(b)
    		if b == 0xff {
    			e.writeByte(0x00)
    		}
    		bits <<= 8
    		nBits -= 8
    	}
    	e.bits, e.nBits = bits, nBits
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
Back to top