Reduces memory occupation.

This commit is contained in:
Andrea Mazzoleni 2011-04-28 23:09:19 +02:00
parent 19d660f383
commit f4f5554287
9 changed files with 102 additions and 81 deletions

18
util.h
View file

@ -94,24 +94,6 @@ void pathprint(char* str, size_t size, const char* format, ...);
*/
void pathslash(char* str, size_t size);
/****************************************************************************/
/* bit */
static inline int bit_has(unsigned bit, unsigned mask)
{
return (bit & mask) == mask;
}
static inline unsigned bit_set(unsigned bit, unsigned mask)
{
return bit | mask;
}
static inline unsigned bit_clear(unsigned bit, unsigned mask)
{
return bit & ~mask;
}
/****************************************************************************/
/* memory */