Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for __bits (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/traceallocfree.go

    		if s.state.get() != mSpanInUse {
    			continue
    		}
    
    		// Find all allocated objects.
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if abits.index < uintptr(s.freeindex) || abits.isMarked() {
    				x := s.base() + i*s.elemsize
    				trace.HeapObjectExists(x, s.typePointersOfUnchecked(x).typ)
    			}
    			abits.advance()
    		}
    	}
    
    	// Write out all the goroutine stacks.
    	forEachGRace(func(gp *g) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. test/shift1.go

    		m int   = 1.0 << s       // 1.0 has type int
    		n       = 1.0<<s != i    // 1.0 has type int; n == false if ints are 32bits in size
    		o       = 1<<s == 2<<s   // 1 and 2 have type int; o == true if ints are 32bits in size
    		// next test only fails on 32bit systems
    		// p = 1<<s == 1<<33  // illegal if ints are 32bits in size: 1 has type int, but 1<<33 overflows int
    		u          = 1.0 << s    // ERROR "non-integer|float64"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 16:24:32 UTC 2021
    - 9.4K bytes
    - Viewed (0)
  7. src/syscall/ztypes_netbsd_386.go

    	X__rsvd         uint32
    	Un              [16]byte
    	X_sysctl_size   [8]byte
    	X_sysctl_func   [8]byte
    	X_sysctl_parent [8]byte
    	X_sysctl_desc   [8]byte
    }
    
    type sigset struct {
    	X__bits [4]uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6K bytes
    - Viewed (0)
  8. src/syscall/ztypes_netbsd_amd64.go

    	X__rsvd         uint32
    	Un              [16]byte
    	X_sysctl_size   [8]byte
    	X_sysctl_func   [8]byte
    	X_sysctl_parent [8]byte
    	X_sysctl_desc   [8]byte
    }
    
    type sigset struct {
    	X__bits [4]uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  9. src/math/big/floatmarsh_test.go

    					if err != nil {
    						t.Errorf("parsing of %s (%dbits, %v) failed (invalid test case): %v", x, prec, mode, err)
    						continue
    					}
    
    					// If tx was set to prec == 0, tx.Parse(x, 0) assumes precision 64. Correct it.
    					if prec == 0 {
    						tx.SetPrec(0)
    					}
    
    					if err := enc.Encode(&tx); err != nil {
    						t.Errorf("encoding of %v (%dbits, %v) failed: %v", &tx, prec, mode, err)
    						continue
    					}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 18:18:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. src/runtime/mwbbuf.go

    		obj, span, objIndex := findObject(ptr, 0, 0)
    		if obj == 0 {
    			continue
    		}
    		// TODO: Consider making two passes where the first
    		// just prefetches the mark bits.
    		mbits := span.markBitsForIndex(objIndex)
    		if mbits.isMarked() {
    			continue
    		}
    		mbits.setMarked()
    
    		// Mark span.
    		arena, pageIdx, pageMask := pageIndexOf(span.base())
    		if arena.pageMarks[pageIdx]&pageMask == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top