Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for cbits (0.13 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/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)
  4. src/cmd/internal/obj/riscv/obj.go

    	// Bit order - [8|4:3|7:6|2:1|5]
    	bits := extractBitAndShift(imm, 8, 7)
    	bits |= extractBitAndShift(imm, 4, 6)
    	bits |= extractBitAndShift(imm, 3, 5)
    	bits |= extractBitAndShift(imm, 7, 4)
    	bits |= extractBitAndShift(imm, 6, 3)
    	bits |= extractBitAndShift(imm, 2, 2)
    	bits |= extractBitAndShift(imm, 1, 1)
    	bits |= extractBitAndShift(imm, 5, 0)
    	return (bits>>5)<<10 | (bits&0x1f)<<2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/crypto/internal/nistec/fiat/p384_fiat64.go

    	var x72 uint64
    	x72, x71 = bits.Mul64(x1, arg2[4])
    	var x73 uint64
    	var x74 uint64
    	x74, x73 = bits.Mul64(x1, arg2[3])
    	var x75 uint64
    	var x76 uint64
    	x76, x75 = bits.Mul64(x1, arg2[2])
    	var x77 uint64
    	var x78 uint64
    	x78, x77 = bits.Mul64(x1, arg2[1])
    	var x79 uint64
    	var x80 uint64
    	x80, x79 = bits.Mul64(x1, arg2[0])
    	var x81 uint64
    	var x82 uint64
    	x81, x82 = bits.Add64(x80, x77, uint64(0x0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 90.8K bytes
    - Viewed (0)
  8. src/net/netip/netip_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			if prefix.Addr() != test.ip {
    				t.Errorf("IP=%s, want %s", prefix.Addr(), test.ip)
    			}
    			if prefix.Bits() != test.bits {
    				t.Errorf("bits=%d, want %d", prefix.Bits(), test.bits)
    			}
    			for _, ip := range test.contains {
    				if !prefix.Contains(ip) {
    					t.Errorf("does not contain %s", ip)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/malloc.go

    	// heapAddrBits is the number of bits in a heap address. On
    	// amd64, addresses are sign-extended beyond heapAddrBits. On
    	// other arches, they are zero-extended.
    	//
    	// On most 64-bit platforms, we limit this to 48 bits based on a
    	// combination of hardware and OS limitations.
    	//
    	// amd64 hardware limits addresses to 48 bits, sign-extended
    	// to 64 bits. Addresses where the top 16 bits are not either
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top