[vlc-commits] Add signed parity on GCC
Rémi Denis-Courmont
git at videolan.org
Sun Feb 11 13:25:46 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 11 14:25:09 2018 +0200| [e097fa0543aa7953627dc8aec75c25afb953fa5b] | committer: Rémi Denis-Courmont
Add signed parity on GCC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e097fa0543aa7953627dc8aec75c25afb953fa5b
---
include/vlc_common.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 1b03307e91..41c1ce4063 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -486,10 +486,15 @@ static inline uint8_t clip_uint8_vlc( int32_t a )
# define parity(x) \
_Generic((x), \
unsigned char: __builtin_parity(x), \
+ signed char: __builtin_parity(x), \
unsigned short: __builtin_parity(x), \
- unsigned: __builtin_parity(x), \
+ signed short: __builtin_parity(x), \
+ unsigned int: __builtin_parity(x), \
+ signed int: __builtin_parity(x), \
unsigned long: __builtin_parityl(x), \
- unsigned long long: __builtin_parityll(x))
+ signed long: __builtin_parityl(x), \
+ unsigned long long: __builtin_parityll(x), \
+ signed long long: __builtin_parityll(x))
# else
VLC_USED static inline int ctz(unsigned x)
More information about the vlc-commits
mailing list