Skip to content

Commit b5533e9

Browse files
seehearfeelchenhuacai
authored andcommitted
tools/loongarch: Use __SIZEOF_LONG__ to define __BITS_PER_LONG
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>
1 parent 213ef66 commit b5533e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/arch/loongarch/include/uapi/asm/bitsperlong.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef __ASM_LOONGARCH_BITSPERLONG_H
33
#define __ASM_LOONGARCH_BITSPERLONG_H
44

5-
#define __BITS_PER_LONG (__SIZEOF_POINTER__ * 8)
5+
#define __BITS_PER_LONG (__SIZEOF_LONG__ * 8)
66

77
#include <asm-generic/bitsperlong.h>
88

0 commit comments

Comments
 (0)