projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compat futex
[urcu.git]
/
urcu
/
compiler.h
diff --git
a/urcu/compiler.h
b/urcu/compiler.h
index 4dd89ea212285e664e2cd3c35e796a9af1d73d1e..975e1eadc1e9cfddd8c21d34f129921808ef7863 100644
(file)
--- a/
urcu/compiler.h
+++ b/
urcu/compiler.h
@@
-39,4
+39,12
@@
*/
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&x)
+#ifndef max
+#define max(a,b) ((a)>(b)?(a):(b))
+#endif
+
+#ifndef min
+#define min(a,b) ((a)<(b)?(a):(b))
+#endif
+
#endif /* _URCU_COMPILER_H */
This page took
0.022914 seconds
and
4
git commands to generate.