Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 531 for cbits (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/compress/lzw/writer.go

    }
    
    // writeLSB writes the code c for "Least Significant Bits first" data.
    func (w *Writer) writeLSB(c uint32) error {
    	w.bits |= c << w.nBits
    	w.nBits += w.width
    	for w.nBits >= 8 {
    		if err := w.w.WriteByte(uint8(w.bits)); err != nil {
    			return err
    		}
    		w.bits >>= 8
    		w.nBits -= 8
    	}
    	return nil
    }
    
    // writeMSB writes the code c for "Most Significant Bits first" data.
    func (w *Writer) writeMSB(c uint32) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/runtime/mgcsweep.go

    	if traceAllocFreeEnabled() || debug.clobberfree != 0 || raceenabled || msanenabled || asanenabled {
    		// Find all newly freed objects.
    		mbits := s.markBitsForBase()
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if !mbits.isMarked() && (abits.index < uintptr(s.freeindex) || abits.isMarked()) {
    				x := s.base() + i*s.elemsize
    				if traceAllocFreeEnabled() {
    					trace := traceAcquire()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  7. src/compress/lzw/reader_test.go

    		{11, 2048 - 1024},
    		{12, 4096 - 2048},
    	}
    	nCodes, nBits := 0, 0
    	for _, e := range iterations {
    		nCodes += e.n
    		nBits += e.n * e.width
    	}
    	if nCodes != 3839 {
    		t.Fatalf("nCodes: got %v, want %v", nCodes, 3839)
    	}
    	if nBits != 43255 {
    		t.Fatalf("nBits: got %v, want %v", nBits, 43255)
    	}
    
    	// Construct our input of 43255 zero bits (which gets d.hi and d.width up
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:58 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/runtime/cgocheck.go

    // bytes, and throws if it finds an unpinned Go pointer. The gcbits mark each
    // pointer value. The src pointer is off bytes into the gcbits.
    //
    //go:nosplit
    //go:nowritebarrier
    func cgoCheckBits(src unsafe.Pointer, gcbits *byte, off, size uintptr) {
    	skipMask := off / goarch.PtrSize / 8
    	skipBytes := skipMask * goarch.PtrSize * 8
    	ptrmask := addb(gcbits, skipMask)
    	src = add(src, skipBytes)
    	off -= skipBytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/runtime/mcheckmark.go

    }
    
    // setCheckmark throws if marking object is a checkmarks violation,
    // and otherwise sets obj's checkmark. It returns true if obj was
    // already checkmarked.
    func setCheckmark(obj, base, off uintptr, mbits markBits) bool {
    	if !mbits.isMarked() {
    		printlock()
    		print("runtime: checkmarks found unexpected unmarked object obj=", hex(obj), "\n")
    		print("runtime: found obj at *(", hex(base), "+", hex(off), ")\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewrite.go

    		me = 32 - bits.TrailingZeros32(uint32(mask))
    		mbn = bits.LeadingZeros32(^uint32(mask))
    		men = 32 - bits.TrailingZeros32(^uint32(mask))
    	} else {
    		mb = bits.LeadingZeros64(uint64(mask))
    		me = 64 - bits.TrailingZeros64(uint64(mask))
    		mbn = bits.LeadingZeros64(^uint64(mask))
    		men = 64 - bits.TrailingZeros64(^uint64(mask))
    	}
    	// Check for a wrapping mask (e.g bits at 0 and 63)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top