diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-11-16 13:51:01 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-11-16 13:52:56 +0000 |
commit | 8913cd95b2f815687f356574fde35179d292cbd1 (patch) | |
tree | aaa01ef9dbd2e22e98051ec2085960a5690615b8 | |
parent | f4b83bff60838f677e8c3c448bcd969810346e35 (diff) |
configure.ac: test for the same atomic function as the one we use
Unlikely that we'll hit a case where __sync_fetch_and_add is present
while __sync_add_and_fetch isn't. Regardless let's keep things sane and
consistent.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 89a3a468..b929d36a 100644 --- a/configure.ac +++ b/configure.ac @@ -210,7 +210,7 @@ AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [ drm_cv_atomic_primitives="none" AC_LINK_IFELSE([AC_LANG_PROGRAM([[ - int atomic_add(int *i) { return __sync_fetch_and_add (i, 1); } + int atomic_add(int *i) { return __sync_add_and_fetch (i, 1); } int atomic_cmpxchg(int *i, int j, int k) { return __sync_val_compare_and_swap (i, j, k); } ]],[[]])], [drm_cv_atomic_primitives="Intel"],[]) |