Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for Kata (0.41 sec)

  1. src/cmd/cgo/internal/testshared/testdata/global/main.go

    	x := globallib.Data[1<<16-1]
    	if x != 1<<16-1 {
    		panic("testMediumOffset: direct mismatch")
    	}
    
    	y := &globallib.Data[1<<16-3]
    	if y != &ptrData()[1<<16-3] {
    		panic("testMediumOffset: address mismatch")
    	}
    }
    
    //go:noinline
    func testLargeOffset() {
    	for i, s := range globallib.Data[1<<20:] {
    		if s != int64(i)+1<<20 {
    			panic("testLargeOffset: index mismatch")
    		}
    	}
    
    	x := globallib.Data[1<<20+1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/lockedfile/transform_test.go

    			offset := rand.Intn(chunkWords)
    
    			err := lockedfile.Transform(path, func(data []byte) (chunk []byte, err error) {
    				chunk = buf[offset*8 : (offset+chunkWords)*8]
    
    				if len(data)&^7 != len(data) {
    					t.Errorf("read %d bytes, but each write is an integer multiple of 8 bytes", len(data))
    					return chunk, nil
    				}
    
    				words := len(data) / 8
    				if !isPowerOf2(words) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/issue50182_test.go

    func genericSorted[T sort.Interface](data T) bool {
    	n := data.Len()
    	for i := n - 1; i > 0; i-- {
    		if data.Less(i, i-1) {
    			return false
    		}
    	}
    	return true
    }
    func TestGenericSorted(t *testing.T) {
    	var data = sort.IntSlice{-10, -5, 0, 1, 2, 3, 5, 7, 11, 100, 100, 100, 1000, 10000}
    	f := func() {
    		genericSorted(data)
    	}
    	if n := testing.AllocsPerRun(10, f); n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 23:35:37 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/allocators.go

    	s := unsafeheader.Slice{
    		Data: unsafe.Pointer(&b[0]),
    		Len:  n,
    		Cap:  cap(b) * int(scale),
    	}
    	return *(*[]*Block)(unsafe.Pointer(&s))
    }
    func (c *Cache) freeBlockSlice(s []*Block) {
    	var base *Value
    	var derived *Block
    	scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived)
    	b := unsafeheader.Slice{
    		Data: unsafe.Pointer(&s[0]),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/mmap/mmap_other.go

    package mmap
    
    import (
    	"io"
    	"os"
    )
    
    // mmapFile on other systems doesn't mmap the file. It just reads everything.
    func mmapFile(f *os.File) (Data, error) {
    	b, err := io.ReadAll(f)
    	if err != nil {
    		return Data{}, err
    	}
    	return Data{f, b}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 454 bytes
    - Viewed (0)
  6. lib/time/mkzip.go

    		if d.IsDir() {
    			return nil
    		}
    		data, err := os.ReadFile(path)
    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/iexport.go

    // Indexed package export.
    //
    // The indexed export data format is an evolution of the previous
    // binary export data format. Its chief contribution is introducing an
    // index table, which allows efficient random access of individual
    // declarations and inline function bodies. In turn, this allows
    // avoiding unnecessary work for compilation units that import large
    // packages.
    //
    //
    // The top-level data format is structured as:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. src/cmd/covdata/merge.go

    	dbgtrace(2, "visit counter data file %s dirIdx %d", cdf, dirIdx)
    	m.mm.beginCounterDataFile(cdr)
    }
    
    func (m *mstate) EndCounterDataFile(cdf string, cdr *decodecounter.CounterDataReader, dirIdx int) {
    }
    
    func (m *mstate) VisitFuncCounterData(data decodecounter.FuncPayload) {
    	m.mm.visitFuncCounterData(data)
    }
    
    func (m *mstate) EndCounters() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:37 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/covdata/covdata.go

    Commands are:
    
    textfmt     convert coverage data to textual format
    percent     output total percentage of statements covered
    pkglist     output list of package import paths
    func        output coverage profile information for each function
    merge       merge data files together
    subtract    subtract one set of data files from another set
    intersect   generate intersection of two sets of data files
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/sizes_test.go

    		"issue60734",
    		`
    package main
    
    import (
    	"unsafe"
    )
    
    // The Data struct size is expected to be rounded up to 16 bytes.
    type Data struct {
    	Value  uint32   // 4 bytes
    	Label  [10]byte // 10 bytes
    	Active bool     // 1 byte
    	// padded with 1 byte to make it align
    }
    
    func main() {
    	assert(unsafe.Sizeof(Data{}) == 16)
    }
    `,
    	},
    }
    
    func TestGCSizes(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top