2 * Copyright (C) 2014-2015 Intel Corporation.
5 #ifndef _LINUX_ATOMIC_H
6 #define _LINUX_ATOMIC_H
8 int android_atomic_release_cas(int32_t oldvalue, int32_t newvalue,
9 volatile int32_t* addr)
11 return !__sync_bool_compare_and_swap(addr, oldvalue, newvalue);
14 #define android_atomic_cmpxchg android_atomic_release_cas
17 #endif /* _LINUX_ATOMIC_H */