mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
PCM API cleaning. silencing implementation. xfer_min removal
This commit is contained in:
parent
684703b387
commit
8f1b27dfb8
29 changed files with 1189 additions and 853 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue