2009-12-14 19:34:32 +01:00
|
|
|
#ifndef __ASM_GENERIC_BITS_PER_LONG
|
|
|
|
#define __ASM_GENERIC_BITS_PER_LONG
|
|
|
|
|
2014-12-27 16:42:08 +01:00
|
|
|
#include <uapi/asm-generic/bitsperlong.h>
|
2009-12-14 19:34:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_64BIT
|
|
|
|
#define BITS_PER_LONG 64
|
|
|
|
#else
|
|
|
|
#define BITS_PER_LONG 32
|
|
|
|
#endif /* CONFIG_64BIT */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* FIXME: The check currently breaks x86-64 build, so it's
|
|
|
|
* temporarily disabled. Please fix x86-64 and reenable
|
|
|
|
*/
|
|
|
|
#if 0 && BITS_PER_LONG != __BITS_PER_LONG
|
|
|
|
#error Inconsistent word size. Check asm/bitsperlong.h
|
|
|
|
#endif
|
|
|
|
|
2014-12-27 16:42:08 +01:00
|
|
|
#ifndef BITS_PER_LONG_LONG
|
|
|
|
#define BITS_PER_LONG_LONG 64
|
|
|
|
#endif
|
|
|
|
|
2009-12-14 19:34:32 +01:00
|
|
|
#endif /* __ASM_GENERIC_BITS_PER_LONG */
|