Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for doffsets (0.19 sec)

  1. src/cmd/compile/internal/types2/sizes.go

    	var offsets []int64
    	if T.NumFields() > 0 {
    		// compute offsets on demand
    		f := stdSizes.Offsetsof
    		if conf.Sizes != nil {
    			f = conf.Sizes.Offsetsof
    		}
    		offsets = f(T.fields)
    		// sanity checks
    		if len(offsets) != T.NumFields() {
    			panic("implementation of offsetsof returned the wrong number of offsets")
    		}
    	}
    	return offsets
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/go/types/sizes.go

    	var offsets []int64
    	if T.NumFields() > 0 {
    		// compute offsets on demand
    		f := stdSizes.Offsetsof
    		if conf.Sizes != nil {
    			f = conf.Sizes.Offsetsof
    		}
    		offsets = f(T.fields)
    		// sanity checks
    		if len(offsets) != T.NumFields() {
    			panic("implementation of offsetsof returned the wrong number of offsets")
    		}
    	}
    	return offsets
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/go/types/gcsizes.go

    	return a
    }
    
    func (s *gcSizes) Offsetsof(fields []*Var) []int64 {
    	offsets := make([]int64, len(fields))
    	var offs int64
    	for i, f := range fields {
    		if offs < 0 {
    			// all remaining offsets are too large
    			offsets[i] = -1
    			continue
    		}
    		// offs >= 0
    		a := s.Alignof(f.typ)
    		offs = align(offs, a) // possibly < 0 if align overflows
    		offsets[i] = offs
    		if d := s.Sizeof(f.typ); d >= 0 && offs >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/gcsizes.go

    	return a
    }
    
    func (s *gcSizes) Offsetsof(fields []*Var) []int64 {
    	offsets := make([]int64, len(fields))
    	var offs int64
    	for i, f := range fields {
    		if offs < 0 {
    			// all remaining offsets are too large
    			offsets[i] = -1
    			continue
    		}
    		// offs >= 0
    		a := s.Alignof(f.typ)
    		offs = align(offs, a) // possibly < 0 if align overflows
    		offsets[i] = offs
    		if d := s.Sizeof(f.typ); d >= 0 && offs >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/internal/syscall/unix/siginfo_linux_test.go

    		// These two fields are swapped on MIPS platforms.
    		ofErrno, ofCode = ofCode, ofErrno
    	}
    	ofPid := 12
    	if host64bit {
    		ofPid = 16
    	}
    	ofUid := ofPid + 4
    	ofStatus := ofPid + 8
    
    	offsets := []struct {
    		name string
    		got  uintptr
    		want int
    	}{
    		{"Signo", unsafe.Offsetof(si.Signo), ofSigno},
    		{"Errno", unsafe.Offsetof(si.Errno), ofErrno},
    		{"Code", unsafe.Offsetof(si.Code), ofCode},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    var trie = newCaseTrie(0)
    
    var sparse = sparseBlocks{
    	values:  sparseValues[:],
    	offsets: sparseOffsets[:],
    }
    
    // Sparse block lookup code.
    
    // valueRange is an entry in a sparse block.
    type valueRange struct {
    	value  uint16
    	lo, hi byte
    }
    
    type sparseBlocks struct {
    	values  []valueRange
    	offsets []uint16
    }
    
    // lookup returns the value from values block n for byte b using binary search.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/mergelocals_test.go

    	// on and then pick up on the frame offsets of specific
    	// variables.
    	//
    	// Stack slot merging is a greedy algorithm, and there can
    	// be many possible ways to overlap a given set of candidate
    	// variables, all of them legal. Rather than locking down
    	// a specific set of overlappings or frame offsets, this
    	// tests just verifies that there is a decent-sized clump of 4+ vars that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/DataStructuralEquality.kt

    
    /**
     * Checks the data in the content of the documents for equality structurally, ignoring:
     * * the [DeclarativeDocument] implementations,
     * * the differences in the source information, like source identifiers or the offsets in the source data,
     * * the source representations of the literal values (thus taking into account only the values),
     * * the error causes, thus considering all error nodes equal to each other but not to any other node.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/reflect/asm_loong64.s

    // that are known to the runtime.
    //
    // The first local is a bool called retValid with a whole pointer-word reserved
    // for it on the stack. The purpose of this word is so that the runtime knows
    // whether the stack-allocated return space contains valid values for stack
    // scanning.
    //
    // The second local is an abi.RegArgs value whose offset is also known to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/index/suffixarray/suffixarray.go

    // an in-memory suffix array.
    //
    // Example use:
    //
    //	// create index for some data
    //	index := suffixarray.New(data)
    //
    //	// lookup byte slice s
    //	offsets1 := index.Lookup(s, -1) // the list of all indices where s occurs in data
    //	offsets2 := index.Lookup(s, 3)  // the list of at most 3 indices where s occurs in data
    package suffixarray
    
    import (
    	"bytes"
    	"encoding/binary"
    	"errors"
    	"io"
    	"math"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top