diff options
author | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-12-22 18:38:48 +0000 |
---|---|---|
committer | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-12-22 18:38:48 +0000 |
commit | 3bf5f55d78769d2f8525626dd662457d2f014151 (patch) | |
tree | 06a4766fc8efe3fa0dfa4ddfa2f5e6081ab7a000 | |
parent | 6856d1d1b2a807efd84dcafa10b865b6de22bc28 (diff) | |
download | gperftools-3bf5f55d78769d2f8525626dd662457d2f014151.tar.gz |
issue-482: Adds support for CACHELINE_ALIGNED value for arm based devices
Hardcoded the cacheline size to 32 because this value is supported by several
arm devices, however a better logic needs to be implemented at some point to
handle more arm devices.
git-svn-id: http://gperftools.googlecode.com/svn/trunk@185 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rw-r--r-- | src/base/basictypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/basictypes.h b/src/base/basictypes.h index b4be9e3..a5f971e 100644 --- a/src/base/basictypes.h +++ b/src/base/basictypes.h @@ -334,6 +334,8 @@ class AssignAttributeStartEnd { #if defined(HAVE___ATTRIBUTE__) # if (defined(__i386__) || defined(__x86_64__)) # define CACHELINE_ALIGNED __attribute__((aligned(64))) +# elif defined(__arm__) +# define CACHELINE_ALIGNED __attribute__((aligned(32))) # elif (defined(__PPC__) || defined(__PPC64__)) # define CACHELINE_ALIGNED __attribute__((aligned(16))) # endif |