Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for __bits (0.54 sec)

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

    }
    
    // newAllocBits returns a pointer to 8 byte aligned bytes
    // to be used for this span's alloc bits.
    // newAllocBits is used to provide newly initialized spans
    // allocation bits. For spans not being initialized the
    // mark bits are repurposed as allocation bits when
    // the span is swept.
    func newAllocBits(nelems uintptr) *gcBits {
    	return newMarkBits(nelems)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/internal/obj/riscv/obj.go

    // immIFits checks whether the immediate value x fits in nbits bits
    // as a signed integer. If it does not, an error is returned.
    func immIFits(x int64, nbits uint) error {
    	nbits--
    	min := int64(-1) << nbits
    	max := int64(1)<<nbits - 1
    	if x < min || x > max {
    		if nbits <= 16 {
    			return fmt.Errorf("signed immediate %d must be in range [%d, %d] (%d bits)", x, min, max, nbits)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          is_qat_model: bool = False,
      ) -> module.Module:
        class EinsumModel(module.Module):
          """Einsum class."""
    
          def __init__(self):
            self._bias = None
            if bias_shape is not None:
              self._bias = array_ops.constant(
                  np.random.uniform(size=bias_shape), dtype=dtypes.float32
              )
    
            self._kernel = np.random.uniform(size=y_shape).astype('f4')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. src/runtime/mgcmark.go

    	// base and extent.
    	b := b0
    	n := n0
    
    	for i := uintptr(0); i < n; {
    		// Find bits for the next word.
    		bits := uint32(*addb(ptrmask, i/(goarch.PtrSize*8)))
    		if bits == 0 {
    			i += goarch.PtrSize * 8
    			continue
    		}
    		for j := 0; j < 8 && i < n; j++ {
    			if bits&1 != 0 {
    				// Same work as in scanobject; see comments there.
    				p := *(*uintptr)(unsafe.Pointer(b + i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf.go

    }
    
    // addDwarfAddrField adds a DWARF field in DWARF 64bits or 32bits.
    func (d *dwctxt) addDwarfAddrField(sb *loader.SymbolBuilder, v uint64) {
    	if isDwarf64(d.linkctxt) {
    		sb.AddUint(d.arch, v)
    	} else {
    		sb.AddUint32(d.arch, uint32(v))
    	}
    }
    
    // addDwarfAddrRef adds a DWARF pointer in DWARF 64bits or 32bits.
    func (d *dwctxt) addDwarfAddrRef(sb *loader.SymbolBuilder, t loader.Sym) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	VADDPD 8128(DX), Z28, Z29       // 62619d40586a7f
    	VADDPD 8128(DX)(AX*2), Z0, Z29  // 6261fd48586c427f
    	VADDPD 8128(DX)(AX*2), Z29, Z1  // 62f19540584c427f
    	// EVEX: compressed displacement that does not fit into 8bits.
    	VADDPD 2048(DX), X29, X0        // 62f19500588200080000
    	VADDPD 2048(DX), X1, X29        // 6261f50858aa00080000
    	VADDPD 2048(DX), X29, X28       // 6261950058a200080000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 57.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		// insert low width bits of arg0 into the result starting at bit lsb, bits to the left of the inserted bit field are set to the high/sign bit of the inserted bit field, bits to the right are zeroed
    		{name: "SBFIZ", argLength: 1, reg: gp11, asm: "SBFIZ", aux: "ARM64BitField"},
    		// extract width bits of arg0 starting at bit lsb and insert at low end of result, remaining high bits are set to the high/sign bit of the extracted bitfield
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
Back to top