ck_pr: Move ck_pr_barrier to compiler port.

ck_pring
Samy Al Bahra 12 years ago
parent cc8c3fb2db
commit 5506ad2744

@ -44,12 +44,14 @@
#include "gcc/ppc64/ck_pr.h" #include "gcc/ppc64/ck_pr.h"
#elif defined(__ppc__) #elif defined(__ppc__)
#include "gcc/ppc/ck_pr.h" #include "gcc/ppc/ck_pr.h"
#elif defined(__GNUC__) #elif !defined(__GNUC__)
#include "gcc/ck_pr.h"
#else
#error Your platform is unsupported #error Your platform is unsupported
#endif #endif
#if defined(__GNUC__)
#include "gcc/ck_pr.h"
#endif
#define CK_PR_FENCE_EMIT(T) \ #define CK_PR_FENCE_EMIT(T) \
CK_CC_INLINE static void \ CK_CC_INLINE static void \
ck_pr_fence_##T(void) \ ck_pr_fence_##T(void) \

@ -78,14 +78,6 @@ CK_PR_FENCE(memory, "sync")
#undef CK_PR_FENCE #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) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \

@ -81,14 +81,6 @@ CK_PR_FENCE(memory, "sync")
#undef CK_PR_FENCE #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) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \

@ -74,14 +74,6 @@ CK_PR_FENCE(memory, "membar #LoadLoad | #LoadStore | #StoreStore | #StoreLoad")
#undef CK_PR_FENCE #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) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \

@ -80,14 +80,6 @@ CK_PR_FENCE(memory, "mfence")
#undef CK_PR_FENCE #undef CK_PR_FENCE
CK_CC_INLINE static void
ck_pr_barrier(void)
{
__asm__ __volatile__("" ::: "memory");
return;
}
/* /*
* Atomic fetch-and-store operations. * Atomic fetch-and-store operations.
*/ */

@ -79,14 +79,6 @@ CK_PR_FENCE(memory, "mfence")
#undef CK_PR_FENCE #undef CK_PR_FENCE
CK_CC_INLINE static void
ck_pr_barrier(void)
{
__asm__ __volatile__("" ::: "memory");
return;
}
/* /*
* Atomic fetch-and-store operations. * Atomic fetch-and-store operations.
*/ */

Loading…
Cancel
Save