blob: 246d158a021edd3f860406f4ad46e841864c4b13 [file] [log] [blame]
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __LINUX_BITMAP_H
13#define __LINUX_BITMAP_H
14
15#ifndef __ASSEMBLY__
16
17#include <linux/types.h>
18#include <linux/bitops.h>
19#include <linux/string.h>
20
21#define BITMAP_LAST_WORD_MASK(nbits) ( ((nbits) % BITS_PER_LONG) ? (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL )
22
23#endif
24#endif