mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
AK: Prefix CACHE_ALIGNED & SYSTEM_CACHE_ALIGNMENT_SIZE
This commit is contained in:
parent
5f253988ef
commit
ea9ef33a7f
2 changed files with 10 additions and 10 deletions
|
@ -126,15 +126,15 @@ extern "C" {
|
|||
# define CLOCK_REALTIME_COARSE CLOCK_REALTIME
|
||||
#endif
|
||||
|
||||
#ifndef SYSTEM_CACHE_ALIGNMENT_SIZE
|
||||
#ifndef AK_SYSTEM_CACHE_ALIGNMENT_SIZE
|
||||
# if ARCH(AARCH64) || ARCH(x86_64)
|
||||
# define SYSTEM_CACHE_ALIGNMENT_SIZE 64
|
||||
# define AK_SYSTEM_CACHE_ALIGNMENT_SIZE 64
|
||||
# else
|
||||
# define SYSTEM_CACHE_ALIGNMENT_SIZE 128
|
||||
# define AK_SYSTEM_CACHE_ALIGNMENT_SIZE 128
|
||||
# endif
|
||||
#endif /* SYSTEM_CACHE_ALIGNMENT_SIZE */
|
||||
#endif /* AK_SYSTEM_CACHE_ALIGNMENT_SIZE */
|
||||
|
||||
#ifdef CACHE_ALIGNED
|
||||
# undef CACHE_ALIGNED
|
||||
#ifdef AK_CACHE_ALIGNED
|
||||
# undef AK_CACHE_ALIGNED
|
||||
#endif
|
||||
#define CACHE_ALIGNED alignas(SYSTEM_CACHE_ALIGNMENT_SIZE)
|
||||
#define AK_CACHE_ALIGNED alignas(AK_SYSTEM_CACHE_ALIGNMENT_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue