Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 510 for aligned (0.16 sec)

  1. src/runtime/memclr_arm64.s

    	STP	(ZR, ZR), (R0)
    	RET
    
    zero_by_16:
    	// n greater than 16 bytes, check if the start address is aligned
    	NEG	R0, R4
    	ANDS	$15, R4, R4
    	// Try zeroing using zva if the start address is aligned with 16
    	BEQ	try_zva
    
    	// Non-aligned store
    	STP	(ZR, ZR), (R0)
    	// Make the destination aligned
    	SUB	R4, R1, R1
    	ADD	R4, R0, R0
    	B	try_zva
    
    tail_maybe_long:
    	CMP	$64, R1
    	BHS	no_zva
    
    tail63:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/crypto/subtle/xor_generic.go

    	y := unsafe.Slice(yb, n)
    
    	if supportsUnaligned || aligned(dstb, xb, yb) {
    		xorLoop(words(dst), words(x), words(y))
    		if uintptr(n)%wordSize == 0 {
    			return
    		}
    		done := n &^ int(wordSize-1)
    		dst = dst[done:]
    		x = x[done:]
    		y = y[done:]
    	}
    	xorLoop(dst, x, y)
    }
    
    // aligned reports whether dst, x, and y are all word-aligned pointers.
    func aligned(dst, x, y *byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 31 23:25:07 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/hash/crc32/crc32_amd64.s

    	CMPQ CX, $8
    	JL less_than_8
    
    	MOVQ SI, BX
    	ANDQ $7, BX
    	JZ aligned
    
    	// Process the first few bytes to 8-byte align the input.
    
    	// BX = 8 - BX. We need to process this many bytes to align.
    	SUBQ $1, BX
    	XORQ $7, BX
    
    	BTQ $0, BX
    	JNC align_2
    
    	CRC32B (SI), AX
    	DECQ CX
    	INCQ SI
    
    align_2:
    	BTQ $1, BX
    	JNC align_4
    
    	CRC32W (SI), AX
    
    	SUBQ $2, CX
    	ADDQ $2, SI
    
    align_4:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 5.4K bytes
    - Viewed (0)
  4. src/go/printer/testdata/statements.golden

    		// this comment should be indented
    	case 2:
    		x = 0
    	// this comment should not be indented, it is aligned with the next case
    	case 3:
    		x = 0
    		/* indented comment
    		   aligned
    		   aligned
    		*/
    		// bla
    		/* and more */
    	case 4:
    		x = 0
    	/* not indented comment
    	   aligned
    	   aligned
    	*/
    	// bla
    	/* and more */
    	case 5:
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  5. src/go/printer/testdata/statements.input

    		// this comment should be indented
    	case 2:
    		x = 0
    	// this comment should not be indented, it is aligned with the next case
    	case 3:
    		x = 0
    		/* indented comment
    		   aligned
    		   aligned
    		*/
    		// bla
    		/* and more */
    	case 4:
    		x = 0
    	/* not indented comment
    	   aligned
    	   aligned
    	*/
    	// bla
    	/* and more */
    	case 5:
    	}
    }
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
  6. src/go/printer/testdata/declarations.input

    var _ = T{0: 0} // not aligned
    var _ = T{0: 0, // not aligned
    	1: 1, // aligned
    	22: 22, // aligned
    	333: 333, 1234: 12, 12345: 0, // first on line aligned
    }
    
    
    // test cases form issue 8685
    // not aligned
    var _ = map[int]string{1: "spring", 2: "summer",
    					3:             "autumn", 4: "winter"}
    
    // not aligned
    var _ = map[string]string{"a": "spring", "b": "summer",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/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: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. src/go/printer/testdata/declarations.golden

    	1:	1,				// aligned
    	22:	22,				// aligned
    	333:	333, 1234: 12, 12345: 0,	// first on line aligned
    }
    
    // test cases form issue 8685
    // not aligned
    var _ = map[int]string{1: "spring", 2: "summer",
    	3:	"autumn", 4: "winter"}
    
    // not aligned
    var _ = map[string]string{"a": "spring", "b": "summer",
    	"c":	"autumn", "d": "winter"}
    
    // aligned
    var _ = map[string]string{"a": "spring",
    	"b":	"summer",
    	"c":	"autumn",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top