18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_BITS_PER_LONG 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_BITS_PER_LONG 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <uapi/asm-generic/bitsperlong.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifdef __SIZEOF_LONG__ 88c2ecf20Sopenharmony_ci#define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) 98c2ecf20Sopenharmony_ci#else 108c2ecf20Sopenharmony_ci#define BITS_PER_LONG __WORDSIZE 118c2ecf20Sopenharmony_ci#endif 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#if BITS_PER_LONG != __BITS_PER_LONG 148c2ecf20Sopenharmony_ci#error Inconsistent word size. Check asm/bitsperlong.h 158c2ecf20Sopenharmony_ci#endif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef BITS_PER_LONG_LONG 188c2ecf20Sopenharmony_ci#define BITS_PER_LONG_LONG 64 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* __ASM_GENERIC_BITS_PER_LONG */ 22