Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 81 for __bits (0.25 sec)

  1. src/runtime/pinner.go

    		atomic.And8(v.bytep, ^mask)
    	}
    }
    
    // pinnerBits is the same type as gcBits but has different methods.
    type pinnerBits gcBits
    
    // ofObject returns the pinState of the n'th object.
    // nosplit, because it's called by isPinned, which is nosplit
    //
    //go:nosplit
    func (p *pinnerBits) ofObject(n uintptr) pinState {
    	bytep, mask := (*gcBits)(p).bitp(n * 2)
    	byteVal := atomic.Load8(bytep)
    	return pinState{bytep, byteVal, mask}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K 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/math/big/natconv.go

    				nbits -= shift
    			}
    
    			// convert any partial leading digit and advance to next word
    			if nbits == 0 {
    				// no partial digit remaining, just advance
    				w = x[k]
    				nbits = _W
    			} else {
    				// partial digit in current word w (== x[k-1]) and next word x[k]
    				w |= x[k] << nbits
    				i--
    				s[i] = digits[w&mask]
    
    				// advance
    				w = x[k] >> (shift - nbits)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 14.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/lite/tests/prepare-quantize-post-training-16bits.mlir

    // RUN: tf-opt %s -tfl-prepare-quantize="quantize-signed=true post-training-quantize=true activation-number-of-bits=16" -cse | FileCheck %s
    
    // CHECK-LABEL: QuantizeUnidirectionalLstmFullPerTensor
    func.func @QuantizeUnidirectionalLstmFullPerTensor(%arg0: tensor<1x2x3xf32>) -> (tensor<1x2x3xf32>) {
      %input = "quantfork.stats"(%arg0) {layerStats = dense<[0.0, 1.0]> : tensor<2xf32>} : (tensor<1x2x3xf32>) -> tensor<1x2x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top