Skip to content

Commit

Permalink
Earlier versions of GCC do not support 256 byte cache lines on s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter authored and Jonathan Albrecht committed Sep 23, 2021
1 parent 8d6670d commit 57b45e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions port/port_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ extern void InitOnce(OnceType* once, void (*initializer)());
#define ALIGN_AS(n) /*empty*/
#else
#if defined(__s390__)
#if defined(__GNUC__) && __GNUC__ < 6
#define CACHE_LINE_SIZE 64U
#else
#define CACHE_LINE_SIZE 256U
#endif
#elif defined(__powerpc__) || defined(__aarch64__)
#define CACHE_LINE_SIZE 128U
#else
Expand Down

0 comments on commit 57b45e3

Please sign in to comment.