Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 281 for Alignment (0.19 sec)

  1. src/runtime/pprof/defs_darwin_arm64.go

    	Max_protection   int32
    	Inheritance      uint32
    	Shared           int32
    	Reserved         int32
    	Offset           [8]byte // This is hand-edited since godefs generates: Pad_cgo_0 [8]byte. Cannot use uint64 due to alignment.
    	Behavior         int32
    	User_wired_count uint16
    	Pad_cgo_1        [2]byte
    }
    
    const (
    	_VM_PROT_READ    = 0x1
    	_VM_PROT_WRITE   = 0x2
    	_VM_PROT_EXECUTE = 0x4
    
    	_MACH_SEND_INVALID_DEST = 0x10000003
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 23:35:39 UTC 2023
    - 607 bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor.h

        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg);
    
    // Returns the alignment, in bytes, required for allocating aligned tensors.
    //
    // This can be used in combination with TF_NewTensor to manually manage
    // memory while ensuring the resulting tensors satisfy TensorFlow's
    // memory alignment preferences.
    TF_CAPI_EXPORT extern size_t TF_TensorDefaultAlignment();
    
    // Allocate and return a new Tensor.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/arm64/asm_arm64_test.go

    	out2 := `0x0010\s00016\s\(.*\)\tMOVD\t\$2,\sR2`
    	var testCases = []struct {
    		name string
    		code []byte
    		out  string
    	}{
    		{"8-byte alignment", code1, out1},
    		{"16-byte alignment", code2, out2},
    	}
    
    	for _, test := range testCases {
    		if err := os.WriteFile(tmpfile, test.code, 0644); err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/internal/bytealg/compare_riscv64.s

    	MOV	X13, X5
    use_a_len:
    	BEQZ	X5, cmp_len
    
    	MOV	$32, X6
    	BLT	X5, X6, check8_unaligned
    
    	// Check alignment - if alignment differs we have to do one byte at a time.
    	AND	$7, X10, X7
    	AND	$7, X12, X8
    	BNE	X7, X8, check8_unaligned
    	BEQZ	X7, compare32
    
    	// Check one byte at a time until we reach 8 byte alignment.
    	SUB	X7, X0, X7
    	ADD	$8, X7, X7
    	SUB	X7, X5, X5
    align:
    	SUB	$1, X7
    	MOVBU	0(X10), X8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/runtime/memclr_riscv64.s

    	// X10 = ptr
    	// X11 = n
    
    	// If less than 8 bytes, do single byte zeroing.
    	MOV	$8, X9
    	BLT	X11, X9, check4
    
    	// Check alignment
    	AND	$7, X10, X5
    	BEQZ	X5, aligned
    
    	// Zero one byte at a time until we reach 8 byte alignment.
    	SUB	X5, X9, X5
    	SUB	X5, X11, X11
    align:
    	SUB	$1, X5
    	MOVB	ZERO, 0(X10)
    	ADD	$1, X10
    	BNEZ	X5, align
    
    aligned:
    	// X9 already contains $8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/internal/unsafeheader/unsafeheader_test.go

    		}
    	}
    
    	if h.NumField() != rh.NumField() {
    		t.Errorf("%v has %d fields, but %v has %d", h, h.NumField(), rh, rh.NumField())
    	}
    	if h.Align() != rh.Align() {
    		t.Errorf("%v has alignment %d, but %v has alignment %d", h, h.Align(), rh, rh.Align())
    	}
    }
    
    var (
    	unsafePointerType = reflect.TypeOf(unsafe.Pointer(nil))
    	uintptrType       = reflect.TypeOf(uintptr(0))
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  7. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/JavaPlatformEcosystemIntegrationTest.groovy

                        canBeResolved = true
                    }
                }
    
                dependencies {
                    constraints {
                        custom(project(":lib")) { because "platform alignment" }
                    }
                }
    
                configurations.custom.copy()
            """
            createDirs("lib")
            settingsFile << "include 'lib'"
    
            expect:
            succeeds ":help"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/runtime/histogram_test.go

    	"testing"
    )
    
    var dummyTimeHistogram TimeHistogram
    
    func TestTimeHistogram(t *testing.T) {
    	// We need to use a global dummy because this
    	// could get stack-allocated with a non-8-byte alignment.
    	// The result of this bad alignment is a segfault on
    	// 32-bit platforms when calling Record.
    	h := &dummyTimeHistogram
    
    	// Record exactly one sample in each bucket.
    	for j := 0; j < TimeHistNumSubBuckets; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:01 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. src/internal/syscall/unix/fallocate_freebsd_arm.go

    	//
    	// The padding 0 argument is needed because the ARM calling convention requires that if an
    	// argument (off in this case) needs double-word alignment (8-byte), the NCRN (next core
    	// register number) is rounded up to the next even register number.
    	// See https://github.com/ARM-software/abi-aa/blob/2bcab1e3b22d55170c563c3c7940134089176746/aapcs32/aapcs32.rst#parameter-passing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 14:17:36 UTC 2023
    - 1013 bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    func parseNotes(reader io.Reader, alignment int, order binary.ByteOrder) ([]elfNote, error) {
    	r := bufio.NewReader(reader)
    
    	// padding returns the number of bytes required to pad the given size to an
    	// alignment boundary.
    	padding := func(size int) int {
    		return ((size + (alignment - 1)) &^ (alignment - 1)) - size
    	}
    
    	var notes []elfNote
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top