diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-01-04 13:59:14 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2011-01-04 13:59:14 +0000 |
commit | 18fc4c55ce4333defc443a2e0a9c64f6e55db607 (patch) | |
tree | 9614d8a3946b7408188314c58f318e8a62eba4f9 /lib/make/configure.in | |
parent | d7a63b4142393b5b310338729a00c3f42b9f0d86 (diff) |
Add CCTK_ATTRIBUTE_ALIGNED, which is auto-configured and expands to
gcc' __attribute__(__aligned__(...)) if present. This is necessary for
vectorisation.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4662 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/configure.in')
-rw-r--r-- | lib/make/configure.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/make/configure.in b/lib/make/configure.in index 1850c5e7..c755e678 100644 --- a/lib/make/configure.in +++ b/lib/make/configure.in @@ -817,6 +817,10 @@ CCTK_CXX_MEMBER_ATTRIBUTE_NOINLINE CCTK_C_ATTRIBUTE_UNUSED CCTK_CXX_ATTRIBUTE_UNUSED +# Find out whether the C compiler supports __attribute__((aligned(...))) +CCTK_C_ATTRIBUTE_ALIGNED +CCTK_CXX_ATTRIBUTE_ALIGNED + ## Find out whether the C compiler supports __attribute__((cold)) #CCTK_C_ATTRIBUTE_COLD #CCTK_CXX_ATTRIBUTE_COLD |