|
|
@ -331,6 +331,11 @@ static av_always_inline av_const int av_popcount64_c(uint64_t x) |
|
|
|
return av_popcount((uint32_t)x) + av_popcount((uint32_t)(x >> 32)); |
|
|
|
return av_popcount((uint32_t)x) + av_popcount((uint32_t)(x >> 32)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static av_always_inline av_const int av_parity_c(uint32_t v) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return av_popcount(v) & 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) |
|
|
|
#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) |
|
|
|
#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24)) |
|
|
|
#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24)) |
|
|
|
|
|
|
|
|
|
|
@ -517,3 +522,6 @@ static av_always_inline av_const int av_popcount64_c(uint64_t x) |
|
|
|
#ifndef av_popcount64 |
|
|
|
#ifndef av_popcount64 |
|
|
|
# define av_popcount64 av_popcount64_c |
|
|
|
# define av_popcount64 av_popcount64_c |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef av_parity |
|
|
|
|
|
|
|
# define av_parity av_parity_c |
|
|
|
|
|
|
|
#endif |
|
|
|