bitset: Add a bitset_free() function

This commit is contained in:
nick
2013-09-11 14:41:59 +01:00
parent 487bef1f40
commit 54a41aacdf
3 changed files with 8 additions and 2 deletions

View File

@@ -141,6 +141,12 @@ static inline struct bitset_mapping* bitset_alloc(
return bitset;
}
static inline void bitset_free( struct bitset_mapping * set )
{
/* TODO: free our mutex... */
free( set );
}
#define INT_FIRST_AND_LAST \
uint64_t first = from/set->resolution, \
last = ((from+len)-1)/set->resolution, \