blob: e8ff23b6e0c1aeabc60ac0014dafd417d0859c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef _LINUX_BITOPS_H
#define _LINUX_BITOPS_H
#ifdef __U_BOOT__
#define BIT(nr) (1UL << (nr))
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
#define BITS_PER_BYTE 8
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
#endif
#include <asm/bitops.h>
#endif
|