Subversion Repositories Kolibri OS

Rev

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

Rev 1408 Rev 1964
Line 40... Line 40...
40
 * bitmap_intersects(src1, src2, nbits) 	Do *src1 and *src2 overlap?
40
 * bitmap_intersects(src1, src2, nbits) 	Do *src1 and *src2 overlap?
41
 * bitmap_subset(src1, src2, nbits)		Is *src1 a subset of *src2?
41
 * bitmap_subset(src1, src2, nbits)		Is *src1 a subset of *src2?
42
 * bitmap_empty(src, nbits)			Are all bits zero in *src?
42
 * bitmap_empty(src, nbits)			Are all bits zero in *src?
43
 * bitmap_full(src, nbits)			Are all bits set in *src?
43
 * bitmap_full(src, nbits)			Are all bits set in *src?
44
 * bitmap_weight(src, nbits)			Hamming Weight: number set bits
44
 * bitmap_weight(src, nbits)			Hamming Weight: number set bits
-
 
45
 * bitmap_set(dst, pos, nbits)			Set specified bit area
-
 
46
 * bitmap_clear(dst, pos, nbits)		Clear specified bit area
-
 
47
 * bitmap_find_next_zero_area(buf, len, pos, n, mask)	Find bit free area
45
 * bitmap_shift_right(dst, src, n, nbits)	*dst = *src >> n
48
 * bitmap_shift_right(dst, src, n, nbits)	*dst = *src >> n
46
 * bitmap_shift_left(dst, src, n, nbits)	*dst = *src << n
49
 * bitmap_shift_left(dst, src, n, nbits)	*dst = *src << n
47
 * bitmap_remap(dst, src, old, new, nbits)	*dst = map(old, new)(src)
50
 * bitmap_remap(dst, src, old, new, nbits)	*dst = map(old, new)(src)
48
 * bitmap_bitremap(oldbit, old, new, nbits)	newbit = map(old, new)(oldbit)
51
 * bitmap_bitremap(oldbit, old, new, nbits)	newbit = map(old, new)(oldbit)
49
 * bitmap_onto(dst, orig, relmap, nbits)	*dst = orig relative to relmap
52
 * bitmap_onto(dst, orig, relmap, nbits)	*dst = orig relative to relmap
Line 106... Line 109...
106
			const unsigned long *bitmap2, int bits);
109
			const unsigned long *bitmap2, int bits);
107
extern int __bitmap_subset(const unsigned long *bitmap1,
110
extern int __bitmap_subset(const unsigned long *bitmap1,
108
			const unsigned long *bitmap2, int bits);
111
			const unsigned long *bitmap2, int bits);
109
extern int __bitmap_weight(const unsigned long *bitmap, int bits);
112
extern int __bitmap_weight(const unsigned long *bitmap, int bits);
Line -... Line 113...
-
 
113
 
-
 
114
extern void bitmap_set(unsigned long *map, int i, int len);
-
 
115
extern void bitmap_clear(unsigned long *map, int start, int nr);
-
 
116
extern unsigned long bitmap_find_next_zero_area(unsigned long *map,
-
 
117
					 unsigned long size,
-
 
118
					 unsigned long start,
-
 
119
					 unsigned int nr,
-
 
120
					 unsigned long align_mask);
110
 
121
 
111
extern int bitmap_scnprintf(char *buf, unsigned int len,
122
extern int bitmap_scnprintf(char *buf, unsigned int len,
112
			const unsigned long *src, int nbits);
123
			const unsigned long *src, int nbits);
113
extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user,
124
extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user,
114
			unsigned long *dst, int nbits);
125
			unsigned long *dst, int nbits);