From 00edf667f62e17a268f03c6aaef19946add75dcf Mon Sep 17 00:00:00 2001 From: "chappedm@gmail.com" Date: Tue, 18 Sep 2012 01:18:15 +0000 Subject: issue-456: Adds support for CACHELINE_ALIGNED values for PPC git-svn-id: http://gperftools.googlecode.com/svn/trunk@156 6b5cf1ce-ec42-a296-1ba9-69fdba395a50 --- src/base/basictypes.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base/basictypes.h b/src/base/basictypes.h index 75b7b5a..baaa806 100644 --- a/src/base/basictypes.h +++ b/src/base/basictypes.h @@ -331,8 +331,12 @@ class AssignAttributeStartEnd { #endif // HAVE___ATTRIBUTE__ and __ELF__ or __MACH__ -#if defined(HAVE___ATTRIBUTE__) && (defined(__i386__) || defined(__x86_64__)) -# define CACHELINE_ALIGNED __attribute__((aligned(64))) +#if defined(HAVE___ATTRIBUTE__) +# if (defined(__i386__) || defined(__x86_64__)) +# define CACHELINE_ALIGNED __attribute__((aligned(64))) +# elif (defined(__PPC__) || defined(__PPC64__)) +# define CACHELINE_ALIGNED __attribute__((aligned(16))) +# endif #else # define CACHELINE_ALIGNED #endif // defined(HAVE___ATTRIBUTE__) && (__i386__ || __x86_64__) -- cgit v1.2.1