PCM API cleaning. silencing implementation. xfer_min removal

This commit is contained in:
Abramo Bagnara 2000-12-29 15:00:53 +00:00
parent 684703b387
commit 8f1b27dfb8
29 changed files with 1189 additions and 853 deletions

View file

@ -19,10 +19,17 @@
*
*/
#include <sys/types.h>
#include <assert.h>
#ifdef MASK_C
#define INLINE inline
#else
#define INLINE static inline
#define INLINE extern inline
#endif
#ifndef MASK_MASK
#define MASK_MAX 32
#endif
struct _mask {
@ -90,6 +97,11 @@ INLINE int mask_empty(const mask_t *mask)
return mask_bits(mask) == 0;
}
INLINE int mask_full(const mask_t *mask)
{
return mask_bits(mask) == ~0U;
}
INLINE unsigned int mask_count(const mask_t *mask)
{
return hweight32(mask_bits(mask));