Lines Matching refs:bit
32 * - Operations are 8-bit only to ensure the functions work both on little
33 * and big endian machines! So don't make them 32-bit ops!
34 * - bitmap starts at bit = 0 and ends at bit = bitmap size - 1.
35 * - _Caller_ has to make sure that the bit to operate on is less than the
39 extern void ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value);
40 extern char ntfs_bit_get(const u8 *bitmap, const u64 bit);
41 extern char ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value);
46 * ntfs_bitmap_set_bit - set a bit in a bitmap
48 * @bit: bit to set
50 * Set the @bit in the bitmap described by the attribute @na.
54 static __inline__ int ntfs_bitmap_set_bit(ntfs_attr *na, s64 bit)
56 return ntfs_bitmap_set_run(na, bit, 1);
60 * ntfs_bitmap_clear_bit - clear a bit in a bitmap
62 * @bit: bit to clear
64 * Clear @bit in the bitmap described by the attribute @na.
68 static __inline__ int ntfs_bitmap_clear_bit(ntfs_attr *na, s64 bit)
70 return ntfs_bitmap_clear_run(na, bit, 1);
74 * rol32 - rotate a 32-bit value left
85 * ror32 - rotate a 32-bit value right