@ -44,12 +44,14 @@
#include "gcc/ppc64/ck_pr.h"
#elif defined(__ppc__)
#include "gcc/ppc/ck_pr.h"
#elif defined(__GNUC__)
#include "gcc/ck_pr.h"
#else
#elif !defined(__GNUC__)
#error Your platform is unsupported
#endif
#if defined(__GNUC__)
#define CK_PR_FENCE_EMIT(T) \
CK_CC_INLINE static void \
ck_pr_fence_##T(void) \
@ -78,14 +78,6 @@ CK_PR_FENCE(memory, "sync")
#undef CK_PR_FENCE
CK_CC_INLINE static void
ck_pr_barrier(void)
{
__asm__ __volatile__("" ::: "memory");
return;
}
#define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \
@ -81,14 +81,6 @@ CK_PR_FENCE(memory, "sync")
@ -74,14 +74,6 @@ CK_PR_FENCE(memory, "membar #LoadLoad | #LoadStore | #StoreStore | #StoreLoad")
@ -80,14 +80,6 @@ CK_PR_FENCE(memory, "mfence")
/*
* Atomic fetch-and-store operations.
*/
@ -79,14 +79,6 @@ CK_PR_FENCE(memory, "mfence")