summaryrefslogtreecommitdiff
path: root/arch/parisc/include/uapi/asm/bitsperlong.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/include/uapi/asm/bitsperlong.h')
-rw-r--r--arch/parisc/include/uapi/asm/bitsperlong.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/bitsperlong.h b/arch/parisc/include/uapi/asm/bitsperlong.h
new file mode 100644
index 000000000..e0a23c7bd
--- /dev/null
+++ b/arch/parisc/include/uapi/asm/bitsperlong.h
@@ -0,0 +1,14 @@
+#ifndef __ASM_PARISC_BITSPERLONG_H
+#define __ASM_PARISC_BITSPERLONG_H
+
+#if defined(__LP64__)
+#define __BITS_PER_LONG 64
+#define SHIFT_PER_LONG 6
+#else
+#define __BITS_PER_LONG 32
+#define SHIFT_PER_LONG 5
+#endif
+
+#include <asm-generic/bitsperlong.h>
+
+#endif /* __ASM_PARISC_BITSPERLONG_H */