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:
7e1a622
)
add definition of OSMO_MIN macro, similar to OSMO_MAX
author
Harald Welte
<laforge@gnumonks.org>
Wed, 27 Jul 2011 20:23:11 +0000
(22:23 +0200)
committer
Harald Welte
<laforge@gnumonks.org>
Wed, 27 Jul 2011 21:28:41 +0000
(23:28 +0200)
include/osmocom/core/utils.h
patch
|
blob
|
history
diff --git
a/include/osmocom/core/utils.h
b/include/osmocom/core/utils.h
index
01b0ab9
..
a1a18e3
100644
(file)
--- a/
include/osmocom/core/utils.h
+++ b/
include/osmocom/core/utils.h
@@
-3,6
+3,7
@@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define OSMO_MAX(a, b) (a) >= (b) ? (a) : (b)
+#define OSMO_MIN(a, b) (a) >= (b) ? (b) : (a)
#include <stdint.h>