]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/include/asm-generic/bitsperlong.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / include / asm-generic / bitsperlong.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
bb970707
ACM
2#ifndef __ASM_GENERIC_BITS_PER_LONG
3#define __ASM_GENERIC_BITS_PER_LONG
4
5#include <uapi/asm-generic/bitsperlong.h>
6
2a00f026 7#ifdef __SIZEOF_LONG__
e81fcd43 8#define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
2a00f026 9#else
e81fcd43 10#define BITS_PER_LONG __WORDSIZE
2a00f026 11#endif
bb970707 12
2a00f026 13#if BITS_PER_LONG != __BITS_PER_LONG
bb970707
ACM
14#error Inconsistent word size. Check asm/bitsperlong.h
15#endif
16
17#ifndef BITS_PER_LONG_LONG
18#define BITS_PER_LONG_LONG 64
19#endif
20
21#endif /* __ASM_GENERIC_BITS_PER_LONG */