diff options
Diffstat (limited to 'scripts/include/asm-generic/bitsperlong.h')
-rw-r--r-- | scripts/include/asm-generic/bitsperlong.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/include/asm-generic/bitsperlong.h b/scripts/include/asm-generic/bitsperlong.h new file mode 100644 index 0000000000..eb2dfd9065 --- /dev/null +++ b/scripts/include/asm-generic/bitsperlong.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __BITS_PER_LONG_H_ +#define __BITS_PER_LONG_H_ + +#ifndef __WORDSIZE +#define __WORDSIZE (__SIZEOF_LONG__ * 8) +#endif + +#define BITS_PER_LONG __WORDSIZE + +#endif |