Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 451 for aligned (0.3 sec)

  1. src/go/types/sizes.go

    //     field's size. As with all element types, if the struct is used
    //     in an array its size must first be aligned to a multiple of the
    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    //     types are naturally aligned with a maximum alignment MaxAlign.
    //
    // *StdSizes implements Sizes.
    type StdSizes struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/tls_arm.s

    // on entry to any function, but only FreeBSD's C library seems to care.
    // The caller was 8-byte aligned, but we push an LR.
    // Declare a dummy word ($4, not $0) to make sure the
    // frame is 8 bytes and stays 8-byte-aligned.
    TEXT runtime·_initcgo(SB),NOSPLIT,$4
    	// if there is an _cgo_init, call it.
    	MOVW	_cgo_init(SB), R4
    	CMP	$0, R4
    	B.EQ	nocgo
    	MRC     15, 0, R0, C13, C0, 3 	// load TLS base pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:38:07 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. src/runtime/runtime_mmap_test.go

    	}
    }
    
    func TestPhysPageSize(t *testing.T) {
    	// Mmap fails if the address is not page aligned, so we can
    	// use this to test if the page size is the true page size.
    	ps := runtime.GetPhysPageSize()
    
    	// Get a region of memory to play with. This should be page-aligned.
    	b, err := runtime.Mmap(nil, 2*ps, 0, runtime.MAP_ANON|runtime.MAP_PRIVATE, -1, 0)
    	if err != 0 {
    		t.Fatalf("Mmap: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/runtime/align_test.go

    			// type the selector arg on some platforms.
    			return
    		}
    		if p, ok := t.(*types.Pointer); ok {
    			// Note: we assume here that the pointer p in p.foo is properly
    			// aligned. We just check that foo is at a properly aligned offset.
    			t = p.Elem()
    		} else {
    			v.checkAddr(n.X)
    		}
    		if t.Underlying() == t {
    			v.t.Errorf("analysis can't handle unnamed type %s %v", v.fset.Position(n.Pos()), t)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. src/runtime/mpagealloc_64bit.go

    	//
    	// The base address of the backing store is always page-aligned,
    	// because it comes from the OS, so it's sufficient to align the
    	// index.
    	haveMin := s.min.Load()
    	haveMax := s.max.Load()
    	needMin := alignDown(uintptr(chunkIndex(base)), physPageSize/scSize)
    	needMax := alignUp(uintptr(chunkIndex(limit)), physPageSize/scSize)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/doc.go

    PCALIGN also changes the function alignment. If a function has one or more PCALIGN directives,
    its address will be aligned to the same or coarser boundary, which is the maximum of all the
    alignment values.
    
    In the following example, the function Add is aligned with 128 bytes.
    
    Examples:
    
    	TEXT ·Add(SB),$40-16
    	MOVD $2, R0
    	PCALIGN $32
    	MOVD $4, R1
    	PCALIGN $128
    	MOVD $8, R2
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. src/runtime/mpallocbits.go

    }
    
    // pages64 returns a 64-bit bitmap representing a block of 64 pages aligned
    // to 64 pages. The returned block of pages is the one containing the i'th
    // page in this pallocBits. Each bit represents whether the page is in-use.
    func (b *pallocBits) pages64(i uint) uint64 {
    	return (*pageBits)(b).block64(i)
    }
    
    // allocPages64 allocates a 64-bit block of 64 pages aligned to 64 pages according
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil.go

    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    // 4K page boundaries. Without passing aligned buffer may cause
    // this function to return error.
    //
    // This code is similar in spirit to io.Copy but it is only to be
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/runtime/memmove_loong64.s

    	SUBVU	R5, R4, R7
    	AND	$7, R7
    	BNE	R7, out
    
    	// if less than 8 bytes, do byte copying
    	SGTU	$8, R6, R7
    	BNE	R7, out
    
    	// do one byte at a time until 8-aligned
    	AND	$7, R4, R8
    	BEQ	R8, words
    	MOVB	(R5), R7
    	ADDV	$1, R5
    	MOVB	R7, (R4)
    	ADDV	$1, R4
    	JMP	-6(PC)
    
    words:
    	// do 8 bytes at a time if there is room
    	ADDV	$-7, R9, R6 // R6 is end pointer-7
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/memmove_mips64x.s

    	SUBVU	R2, R1, R4
    	AND	$7, R4
    	BNE	R4, out
    
    	// if less than 8 bytes, do byte copying
    	SGTU	$8, R3, R4
    	BNE	R4, out
    
    	// do one byte at a time until 8-aligned
    	AND	$7, R1, R5
    	BEQ	R5, words
    	MOVB	(R2), R4
    	ADDV	$1, R2
    	MOVB	R4, (R1)
    	ADDV	$1, R1
    	JMP	-6(PC)
    
    words:
    	// do 8 bytes at a time if there is room
    	ADDV	$-7, R6, R3 // R3 is end pointer-7
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top