projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e1f23
)
add MAX() macro as OSMO_MAX
author
Harald Welte
<laforge@gnumonks.org>
Sun, 26 Jun 2011 12:19:54 +0000
(14:19 +0200)
committer
Harald Welte
<laforge@gnumonks.org>
Sun, 26 Jun 2011 12:19:54 +0000
(14:19 +0200)
include/osmocom/core/utils.h
patch
|
blob
|
history
diff --git
a/include/osmocom/core/utils.h
b/include/osmocom/core/utils.h
index
0f1ea3b
..
01b0ab9
100644
(file)
--- a/
include/osmocom/core/utils.h
+++ b/
include/osmocom/core/utils.h
@@
-2,6
+2,7
@@
#define OSMOCORE_UTIL_H
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define OSMO_MAX(a, b) (a) >= (b) ? (a) : (b)
#include <stdint.h>