Thread (12 messages) flat view 12 messages, 3 authors, 2018-03-13
STALE3115d

Revision v3 of 2 in this series.

Revisions (2)
  1. v2 [diff vs current]
  2. v3 current

[PATCH v3 4/5] linux/const.h: refactor _BITUL and _BITULL a bit

From: Masahiro Yamada <hidden>
Date: 2018-02-22 12:16:41
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Minor cleanups available by _UL and _ULL.

Signed-off-by: Masahiro Yamada <redacted>
---
V2: https://patchwork.kernel.org/patch/9498269/


Changes in v3: None
Changes in v2: None

 include/uapi/linux/const.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/const.h b/include/uapi/linux/const.h
index 09bc0e0..5ed721a 100644
--- a/include/uapi/linux/const.h
+++ b/include/uapi/linux/const.h
@@ -25,7 +25,7 @@
 #define _UL(x)		(_AC(x, UL))
 #define _ULL(x)		(_AC(x, ULL))
 
-#define _BITUL(x)	(_AC(1,UL) << (x))
-#define _BITULL(x)	(_AC(1,ULL) << (x))
+#define _BITUL(x)	(_UL(1) << (x))
+#define _BITULL(x)	(_ULL(1) << (x))
 
 #endif /* _UAPI_LINUX_CONST_H */
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help