From e1d33c467bfa004887f9a4985e202482f306f456 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 5 Mar 2011 23:41:46 +0100 Subject: [PATCH] ck_pr: Fix some strict aliasing issues and fix char neg. --- include/ck_pr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ck_pr.h b/include/ck_pr.h index 38b252d..f269a0c 100644 --- a/include/ck_pr.h +++ b/include/ck_pr.h @@ -31,7 +31,7 @@ #include #include #include -#include +#include #if defined(__x86_64__) #include "gcc/x86_64/ck_pr.h" @@ -39,6 +39,8 @@ #include "gcc/x86/ck_pr.h" #elif defined(__sparcv9__) #include "gcc/sparcv9/ck_pr.h" +#elif defined(__ppc64__) +#include "gcc/ppc64/ck_pr.h" #elif defined(__GNUC__) #include "gcc/ck_pr.h" #else @@ -447,7 +449,7 @@ CK_PR_BTX_S(bts, 16, uint16_t, |,) previous = (T)punt; \ while (ck_pr_cas_##S##_value(target, (C)previous, (C)(previous P 1), &previous) == false) \ ck_pr_stall(); \ - *zero = previous == Z; \ + *zero = previous == (T)Z; \ return; \ }