projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec107a
)
Added MIN und MAX
author
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 11 Apr 2006 15:46:19 +0000
(15:46 +0000)
committer
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 11 Apr 2006 15:46:19 +0000
(15:46 +0000)
[r7625]
ir/common/irtools.h
patch
|
blob
|
history
diff --git
a/ir/common/irtools.h
b/ir/common/irtools.h
index
a67d8b9
..
53bbe43
100644
(file)
--- a/
ir/common/irtools.h
+++ b/
ir/common/irtools.h
@@
-20,6
+20,11
@@
lc_opt_entry_t *firm_opt_get_root(void);
#endif
+#undef MIN
+#undef MAX
+#define MAX(x, y) ((x) > (y) ? (x) : (y))
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
+
/**
* convert an integer into pointer
*/