Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for coffsets (0.14 sec)

  1. src/bytes/bytes_test.go

    			}
    			b1[j] = 0
    			pos = IndexByte(b1, 'x')
    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/time/time.go

    	if t.Location() == UTC {
    		offsetMin = -1
    	} else {
    		_, offset := t.Zone()
    		if offset%60 != 0 {
    			version = timeBinaryVersionV2
    			offsetSec = int8(offset % 60)
    		}
    
    		offset /= 60
    		if offset < -32768 || offset == -1 || offset > 32767 {
    			return nil, errors.New("Time.MarshalBinary: unexpected zone offset")
    		}
    		offsetMin = int16(offset)
    	}
    
    	sec := t.sec()
    	nsec := t.nsec()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug.go

    		}
    	}
    	return changed
    }
    
    // varOffset returns the offset of slot within the user variable it was
    // decomposed from. This has nothing to do with its stack offset.
    func varOffset(slot LocalSlot) int64 {
    	offset := slot.Off
    	s := &slot
    	for ; s.SplitOf != nil; s = s.SplitOf {
    		offset += s.SplitOffset
    	}
    	return offset
    }
    
    type partsByVarOffset struct {
    	slotIDs []SlotID
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  4. src/runtime/mgcmark.go

    //
    //go:nowritebarrier
    func markrootBlock(b0, n0 uintptr, ptrmask0 *uint8, gcw *gcWork, shard int) int64 {
    	if rootBlockBytes%(8*goarch.PtrSize) != 0 {
    		// This is necessary to pick byte offsets in ptrmask0.
    		throw("rootBlockBytes must be a multiple of 8*ptrSize")
    	}
    
    	// Note that if b0 is toward the end of the address space,
    	// then b0 + rootBlockBytes might wrap around.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    	},
    	ErrInvalidCopyPartRange: {
    		Code:           "InvalidArgument",
    		Description:    "The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidCopyPartRangeSource: {
    		Code:           "InvalidArgument",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (1)
  6. src/cmd/link/internal/ld/elf.go

    		s.AddUint16(ctxt.Arch, uint16(j))                        // aux count
    		s.AddUint32(ctxt.Arch, uint32(dynstr.Addstring(l.file))) // file string offset
    		s.AddUint32(ctxt.Arch, 16)                               // offset from header to first aux
    		if l.next != nil {
    			s.AddUint32(ctxt.Arch, 16+uint32(j)*16) // offset from this header to next
    		} else {
    			s.AddUint32(ctxt.Arch, 0)
    		}
    
    		for x := l.aux; x != nil; x = x.next {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  7. src/runtime/mbitmap.go

    			bits := (tp.addr + goarch.PtrSize*ptrBits - limit) / goarch.PtrSize
    			tp.mask &^= ((1 << (bits)) - 1) << (ptrBits - bits)
    		}
    		return tp
    	}
    
    	// Move up elem and addr.
    	// Offsets within an element are always at a ptrBits*goarch.PtrSize boundary.
    	if n >= tp.typ.Size_ {
    		// elem needs to be moved to the element containing
    		// tp.addr + n.
    		oldelem := tp.elem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/mark_for_compilation_pass.cc

        if (!IsCompilationCandidate(node)) {
          cluster_for_node_[node->id()].Get() = nullptr;
          continue;
        }
    
        // We want clusters to be big enough that the benefit from XLA's
        // optimizations offsets XLA related overhead (for instance we add some
        // Switch/Merge nodes into the graph to implement lazy compilation).  To
        // this end, we don't count Identity and Constant nodes because they do not
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/dwarf.go

    				f = sn[5:] // skip "type:"
    			}
    			fld := d.newdie(die, dwarf.DW_ABRV_STRUCTFIELD, f)
    			d.newrefattr(fld, dwarf.DW_AT_type, d.defgotype(s))
    			offset := decodetypeStructFieldOffset(d.ldr, d.arch, gotype, i)
    			newmemberoffsetattr(fld, int32(offset))
    			if decodetypeStructFieldEmbedded(d.ldr, d.arch, gotype, i) {
    				newattr(fld, dwarf.DW_AT_go_embedded_field, dwarf.DW_CLS_FLAG, 1, 0)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/arm64.s

    	FMOVS	4(R1), F2 // 220440bd
    	FMOVD	1(R1), F2 // 221040fc
    	FMOVD	8(R1), F2 // 220440fd
    	FMOVQ	32(R5), F2 // a208c03d
    	FMOVQ	65520(R10), F10 // 4afdff3d
    	FMOVQ	64(RSP), F11    // eb13c03d
    
    // medium offsets that either fit a single instruction or can use add+ldr/str
    	MOVD -4095(R17), R3                        // 3bfe3fd1630340f9
    	MOVD -391(R17), R3                         // 3b1e06d1630340f9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 94.9K bytes
    - Viewed (0)
Back to top