Subversion Repositories Kolibri OS

Rev

Rev 1970 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1970 Rev 2967
Line 142... Line 142...
142
		int sz, int bits);
142
		int sz, int bits);
143
extern int bitmap_find_free_region(unsigned long *bitmap, int bits, int order);
143
extern int bitmap_find_free_region(unsigned long *bitmap, int bits, int order);
144
extern void bitmap_release_region(unsigned long *bitmap, int pos, int order);
144
extern void bitmap_release_region(unsigned long *bitmap, int pos, int order);
145
extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order);
145
extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order);
146
extern void bitmap_copy_le(void *dst, const unsigned long *src, int nbits);
146
extern void bitmap_copy_le(void *dst, const unsigned long *src, int nbits);
-
 
147
extern int bitmap_ord_to_pos(const unsigned long *bitmap, int n, int bits);
Line -... Line 148...
-
 
148
 
147
 
149
#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG))
148
#define BITMAP_LAST_WORD_MASK(nbits)					\
150
#define BITMAP_LAST_WORD_MASK(nbits)					\
149
(									\
151
(									\
150
	((nbits) % BITS_PER_LONG) ?					\
152
	((nbits) % BITS_PER_LONG) ?					\
151
		(1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL		\
153
		(1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL		\