- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 844 for alignment (0.35 sec)
-
test/fixedbugs/issue67160.go
// T is "special" because of the unnamed field, so it needs a generated equality function. // T is an odd number of bytes in size and has alignment 1. type T struct { src [8]byte _ byte } // U contains 8 copies of T, each at a different %8 alignment. type U [8]T //go:noinline func f(x, y *U) bool { return *x == *y } func main() { var a U _ = f(&a, &a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:34:04 UTC 2024 - 767 bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/RISCV64.rules
(Zero [1] ptr mem) => (MOVBstore ptr (MOVDconst [0]) mem) (Zero [2] {t} ptr mem) && t.Alignment()%2 == 0 => (MOVHstore ptr (MOVDconst [0]) mem) (Zero [2] ptr mem) => (MOVBstore [1] ptr (MOVDconst [0]) (MOVBstore ptr (MOVDconst [0]) mem)) (Zero [4] {t} ptr mem) && t.Alignment()%4 == 0 => (MOVWstore ptr (MOVDconst [0]) mem) (Zero [4] {t} ptr mem) && t.Alignment()%2 == 0 => (MOVHstore [2] ptr (MOVDconst [0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 14:57:07 UTC 2024 - 40.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/gcsizes.go
type gcSizes struct { WordSize int64 // word size in bytes - must be >= 4 (32bits) MaxAlign int64 // maximum alignment in bytes - must be >= 1 } func (s *gcSizes) Alignof(T Type) (result int64) { defer func() { assert(result >= 1) }() // For arrays and structs, alignment is defined in terms // of alignment of the elements and fields, respectively. switch t := under(T).(type) { case *Array:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/runtime/internal/sys/consts.go
// PCQuantum is the minimal unit for a program counter (1 on x86, 4 on most other systems). // The various PC tables record PC deltas pre-divided by PCQuantum. const PCQuantum = goarch.PCQuantum // Int64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit). const Int64Align = goarch.PtrSize // MinFrameSize is the size of the system-reserved words at the bottom // of a frame (just above the architectural stack pointer).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 16:26:25 UTC 2022 - 1.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/MIPS64.rules
(Zero [s] {t} ptr mem) && (s > 8*128 || config.noDuffDevice) || t.Alignment()%8 != 0 => (LoweredZero [t.Alignment()] ptr (ADDVconst <ptr.Type> ptr [s-moveSize(t.Alignment(), config)]) mem) // moves (Move [0] _ _ mem) => mem (Move [1] dst src mem) => (MOVBstore dst (MOVBload src mem) mem) (Move [2] {t} dst src mem) && t.Alignment()%2 == 0 => (MOVHstore dst (MOVHload src mem) mem) (Move [2] dst src mem) =>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 03:59:48 UTC 2023 - 41.9K bytes - Viewed (0) -
src/runtime/mksizeclasses.go
if powerOfTwo(size) { // bump alignment once in a while if size >= 2048 { align = 256 } else if size >= 128 { align = size / 8 } else if size >= 32 { align = 16 // heap bitmaps assume 16 byte alignment for allocations >= 32 bytes. } } if !powerOfTwo(align) { panic("incorrect alignment") } // Make the allocnpages big enough that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 9.6K bytes - Viewed (0) -
src/runtime/memclr_arm64.s
BNE no_zva zero_by_line: CMP R5, R1 // Not enough memory to reach alignment BLO no_zva SUB $1, R5, R6 NEG R0, R4 ANDS R6, R4, R4 // Already aligned BEQ aligned // check there is enough to copy after alignment SUB R4, R1, R3 // Check that the remaining length to ZVA after alignment // is greater than 64. CMP $64, R3 CCMP GE, R3, R5, $10 // condition code GE, NZCV=0b1010
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 18:26:13 UTC 2022 - 3.6K bytes - Viewed (0) -
src/runtime/memmove_riscv64.s
// If less than 8 bytes, do single byte copies. MOV $8, X9 BLT X12, X9, f_loop4_check // Check alignment - if alignment differs we have to do one byte at a time. AND $7, X10, X5 AND $7, X11, X6 BNE X5, X6, f_loop8_unaligned_check BEQZ X5, f_loop_check // Move one byte at a time until we reach 8 byte alignment. SUB X5, X9, X5 SUB X5, X12, X12 f_align: SUB $1, X5 MOVB 0(X11), X14 MOVB X14, 0(X10)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 5.5K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/img/warPluginTasks.graphml
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 3.7K bytes - Viewed (0) -
src/runtime/align_test.go
varDesc[i] = v[1] } // Check all of our alignments. This is the actual core of the test. for i, d := range runtime.AtomicFields { if d%8 != 0 { t.Errorf("field alignment of %s failed: offset is %d", fieldDesc[i], d) } } for i, p := range runtime.AtomicVariables { if uintptr(p)%8 != 0 { t.Errorf("variable alignment of %s failed: address is %x", varDesc[i], p) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0)