diff options
Diffstat (limited to 'lib/rbcodec/platform.h')
-rw-r--r-- | lib/rbcodec/platform.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rbcodec/platform.h b/lib/rbcodec/platform.h index fe79358b21..be2fd059d9 100644 --- a/lib/rbcodec/platform.h +++ b/lib/rbcodec/platform.h | |||
@@ -31,6 +31,16 @@ size_t strlcpy(char *dst, const char *src, size_t siz); | |||
31 | #ifndef BIT_N | 31 | #ifndef BIT_N |
32 | # define BIT_N(n) (1U << (n)) | 32 | # define BIT_N(n) (1U << (n)) |
33 | #endif | 33 | #endif |
34 | |||
35 | #ifndef MASK_N | ||
36 | /* Make a mask of n contiguous bits, shifted left by 'shift' */ | ||
37 | # define MASK_N(type, n, shift) \ | ||
38 | ((type)((((type)1 << (n)) - (type)1) << (shift))) | ||
39 | #endif | ||
40 | |||
41 | #ifndef INIT_ATTR | ||
42 | # define INIT_ATTR | ||
43 | #endif | ||
34 | /* | 44 | /* |
35 | #ifdef CODEC | 45 | #ifdef CODEC |
36 | 46 | ||
@@ -115,4 +125,6 @@ static inline int32_t clip_sample_16(int32_t sample) | |||
115 | } | 125 | } |
116 | #endif | 126 | #endif |
117 | */ | 127 | */ |
128 | |||
129 | int find_first_set_bit(uint32_t value); | ||
118 | #endif /* PLATFORM_H_INCLUDED */ | 130 | #endif /* PLATFORM_H_INCLUDED */ |