bitops.h (f312eff8164879e04923d41e9dd23e7850937d85) bitops.h (61f2e7b0f474225b4226772830ae4b29a3a21f8d)
1/*
2 * Copyright 1995, Russell King.
3 * Various bits and pieces copyrights include:
4 * Linus Torvalds (test_bit).
5 * Big endian support: Copyright 2001, Nicolas Pitre
6 * reworked by rmk.
7 *
8 * bit 0 is the LSB of an "unsigned long" quantity.

--- 331 unchanged lines hidden (view full) ---

340/*
341 * Ext2 is defined to use little-endian byte ordering.
342 */
343#define ext2_set_bit_atomic(lock, nr, p) \
344 test_and_set_bit_le(nr, p)
345#define ext2_clear_bit_atomic(lock, nr, p) \
346 test_and_clear_bit_le(nr, p)
347
1/*
2 * Copyright 1995, Russell King.
3 * Various bits and pieces copyrights include:
4 * Linus Torvalds (test_bit).
5 * Big endian support: Copyright 2001, Nicolas Pitre
6 * reworked by rmk.
7 *
8 * bit 0 is the LSB of an "unsigned long" quantity.

--- 331 unchanged lines hidden (view full) ---

340/*
341 * Ext2 is defined to use little-endian byte ordering.
342 */
343#define ext2_set_bit_atomic(lock, nr, p) \
344 test_and_set_bit_le(nr, p)
345#define ext2_clear_bit_atomic(lock, nr, p) \
346 test_and_clear_bit_le(nr, p)
347
348/*
349 * Minix is defined to use little-endian byte ordering.
350 * These do not need to be atomic.
351 */
352#define minix_set_bit __set_bit_le
353#define minix_test_bit test_bit_le
354#define minix_test_and_set_bit __test_and_set_bit_le
355#define minix_test_and_clear_bit __test_and_clear_bit_le
356#define minix_find_first_zero_bit find_first_zero_bit_le
357
358#endif /* __KERNEL__ */
359
360#endif /* _ARM_BITOPS_H */
348#endif /* __KERNEL__ */
349
350#endif /* _ARM_BITOPS_H */