diff options
Diffstat (limited to 'include/gcc/x86/ck_pr.h')
| -rw-r--r-- | include/gcc/x86/ck_pr.h | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gcc/x86/ck_pr.h b/include/gcc/x86/ck_pr.h index 3e36376fdd95..e678e830e0b4 100644 --- a/include/gcc/x86/ck_pr.h +++ b/include/gcc/x86/ck_pr.h @@ -233,18 +233,18 @@ CK_PR_FAA_S(8,  uint8_t,  "xaddb")  	}  #define CK_PR_UNARY_V(K, S, T, C, I)					\ -	CK_CC_INLINE static void					\ -	ck_pr_##K##_##S##_zero(T *target, bool *r)			\ +	CK_CC_INLINE static bool					\ +	ck_pr_##K##_##S##_is_zero(T *target)				\  	{								\ +		bool ret;						\  		__asm__ __volatile__(CK_PR_LOCK_PREFIX I " %0; setz %1"	\  					: "+m" (*(C *)target),		\ -					  "=m" (*r)			\ +					  "=rm" (ret)			\  					:				\  					: "memory", "cc");		\ -		return;							\ +		return ret;						\  	} -  #define CK_PR_UNARY_S(K, S, T, I) CK_PR_UNARY(K, S, T, T, I)  #define CK_PR_GENERATE(K)				\  | 
