projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d13a60
)
backports: add U32_MAX
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 8 Jun 2014 15:44:47 +0000
(17:44 +0200)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 16 Jun 2014 18:23:37 +0000
(20:23 +0200)
This was added in:
commit
89a0714106aac7309c7dfa0f004b39e1e89d2942
Author: Alex Elder <alex.elder@linaro.org>
Date: Thu Jan 23 15:54:00 2014 -0800
kernel.h: define u8, s8, u32, etc. limits
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/backport/backport-include/linux/kernel.h
b/backport/backport-include/linux/kernel.h
index e695842b9fff42564f4d2bc5e6e9990cc9863dce..933686f8a1032f2d7e21b78e0956fbf3ebad00d9 100644
(file)
--- a/
backport/backport-include/linux/kernel.h
+++ b/
backport/backport-include/linux/kernel.h
@@
-45,6
+45,10
@@
#define SHRT_MIN ((s16)(-SHRT_MAX - 1))
#endif
+#ifndef U32_MAX
+#define U32_MAX ((u32)~0U)
+#endif
+
#ifndef __round_mask
#define __round_mask(x, y) ((__typeof__(x))((y)-1))
#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)