Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 316 for offsetsof (0.14 sec)

  1. src/internal/coverage/encodemeta/encodefile.go

    	"fmt"
    	"internal/coverage"
    	"internal/coverage/stringtab"
    	"io"
    	"os"
    	"unsafe"
    )
    
    // This package contains APIs and helpers for writing out a meta-data
    // file (composed of a file header, offsets/lengths, and then a series of
    // meta-data blobs emitted by the compiler, one per Go package).
    
    type CoverageMetaFileWriter struct {
    	stab   stringtab.Writer
    	mfname string
    	w      *bufio.Writer
    	tmp    []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		if ino == 0 { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/utils.h

      SmallVector<int32_t> offsets;
      if (begin_values.size() == end_values.size()) {
        for (size_t i = 0; i < begin_values.size(); ++i) {
          offsets.push_back(end_values[i] - begin_values[i]);
        }
      }
    
      return mlir::DenseElementsAttr::get(
          RankedTensorType::get({static_cast<int>(offsets.size())},
                                mlir::IntegerType::get(begin.getContext(), 32)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. src/internal/coverage/defs.go

    //
    // Meta-data definitions:
    //
    // The meta-data file is composed of a file header, a series of
    // meta-data blobs/sections (one per instrumented package), and an offsets
    // area storing the offsets of each section. Format of the meta-data
    // file looks like:
    //
    // --header----------
    //  | magic: [4]byte magic string
    //  | version
    //  | total length of meta-data file in bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/go/token/position.go

    	f.mutex.Lock()
    	lines := f.lines
    	f.mutex.Unlock()
    	return lines
    }
    
    // SetLines sets the line offsets for a file and reports whether it succeeded.
    // The line offsets are the offsets of the first character of each line;
    // for instance for the content "ab\nc\n" the line offsets are {0, 3}.
    // An empty file has an empty line offset table.
    // Each line offset must be larger than the offset for the previous line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	//  var _ = 1 + ""
    	InvalidUntypedConversion
    
    	/* offsetof */
    
    	// BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
    	// that is not a selector expression.
    	//
    	// Example:
    	//  import "unsafe"
    	//
    	//  var x int
    	//  var _ = unsafe.Offsetof(x)
    	BadOffsetofSyntax
    
    	// InvalidOffsetof occurs when unsafe.Offsetof is called with a method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. test/fixedbugs/issue6036.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 6036: 6g's backend generates OINDREG with
    // offsets larger than 32-bit.
    
    package main
    
    type T struct {
    	Large [1 << 31]byte
    	A     int
    	B     int
    }
    
    func F(t *T) {
    	t.B = t.A
    }
    
    type T2 [1<<31 + 2]byte
    
    func F2(t *T2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 652 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testshared/testdata/global/main.go

    	}
    
    	y := &globallib.Data[1<<20+2]
    	if y != &ptrData()[1<<20+2] {
    		panic("testLargeOffset: address mismatch")
    	}
    }
    
    func main() {
    	testLoop()
    
    	// SSA rules commonly merge offsets into addresses. These
    	// tests access global data in different ways to try
    	// and exercise different SSA rules.
    	testMediumOffset()
    	testLargeOffset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/asm/internal/asm/testdata/386enc.s

    	MOVQ (AX), M0  // 0f6f00
    	MOVQ M0, 8(SP) // 0f7f442408
    	MOVQ 8(SP), M0 // 0f6f442408
    	MOVQ M0, (AX)  // 0f7f00
    	MOVQ M0, (BX)  // 0f7f03
    	// On non-64bit arch, Go asm allowed uint32 offsets instead of int32.
    	// These tests check that property for backwards-compatibility.
    	MOVL 2147483648(AX), AX  // 8b8000000080
    	MOVL -2147483648(AX), AX // 8b8000000080
    	ADDL 2147483648(AX), AX  // 038000000080
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top