mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00

Although __SIZEOF_POINTER__ is equal to _SIZEOF_LONG__ on LoongArch, it is better to use __SIZEOF_LONG__ to define __BITS_PER_LONG to keep consistent between arch/loongarch/include/uapi/asm/bitsperlong.h and tools/arch/loongarch/include/uapi/asm/bitsperlong.h. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
10 lines
268 B
C
10 lines
268 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef __ASM_LOONGARCH_BITSPERLONG_H
|
|
#define __ASM_LOONGARCH_BITSPERLONG_H
|
|
|
|
#define __BITS_PER_LONG (__SIZEOF_LONG__ * 8)
|
|
|
|
#include <asm-generic/bitsperlong.h>
|
|
|
|
#endif /* __ASM_LOONGARCH_BITSPERLONG_H */
|