diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2018-07-23 07:31:37 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2018-07-23 07:31:37 +0000 |
commit | 5ffae39d54df91940d3092ab3c2d890574a8d52d (patch) | |
tree | 596ee51471313b4392038b92b154ca0c6e84036e /include/gcc/x86_64/ck_pr.h | |
parent | 65d045ccf6c92fe265afb7a9d17c1795c7134c61 (diff) | |
download | src-5ffae39d54df91940d3092ab3c2d890574a8d52d.tar.gz src-5ffae39d54df91940d3092ab3c2d890574a8d52d.zip |
Notes
Diffstat (limited to 'include/gcc/x86_64/ck_pr.h')
-rw-r--r-- | include/gcc/x86_64/ck_pr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gcc/x86_64/ck_pr.h b/include/gcc/x86_64/ck_pr.h index 4de1332910ce..fb2804e8d8e5 100644 --- a/include/gcc/x86_64/ck_pr.h +++ b/include/gcc/x86_64/ck_pr.h @@ -332,18 +332,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) \ |