Skip to content

Commit d0d0a80

Browse files
committed
CachePadded: Use 128-byte alignment on arm64ec
Same as aarch64.
1 parent f757eef commit d0d0a80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crossbeam-utils/src/cache_padded.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ use core::ops::{Deref, DerefMut};
6767
// - https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf
6868
// - https://github.com/facebook/folly/blob/1b5288e6eea6df074758f877c849b6e73bbb9fbb/folly/lang/Align.h#L107
6969
//
70-
// ARM's big.LITTLE architecture has asymmetric cores and "big" cores have 128-byte cache line size.
70+
// aarch64/arm64ec's big.LITTLE architecture has asymmetric cores and "big" cores have 128-byte cache line size.
7171
//
7272
// Sources:
7373
// - https://www.mono-project.com/news/2016/09/12/arm64-icache/
@@ -81,6 +81,7 @@ use core::ops::{Deref, DerefMut};
8181
any(
8282
target_arch = "x86_64",
8383
target_arch = "aarch64",
84+
target_arch = "arm64ec",
8485
target_arch = "powerpc64",
8586
),
8687
repr(align(128))
@@ -130,6 +131,7 @@ use core::ops::{Deref, DerefMut};
130131
not(any(
131132
target_arch = "x86_64",
132133
target_arch = "aarch64",
134+
target_arch = "arm64ec",
133135
target_arch = "powerpc64",
134136
target_arch = "arm",
135137
target_arch = "mips",

0 commit comments

Comments
 (0)