[libbluray-devel] added BD_MIN() and BD_MAX() macros

hpi1 git at videolan.org
Wed Jun 19 15:21:16 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jun 19 15:58:20 2013 +0300| [b475261ff9f1efdb80992d0cacfa31685fc03c51] | committer: hpi1

added BD_MIN() and BD_MAX() macros

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b475261ff9f1efdb80992d0cacfa31685fc03c51
---

 src/util/macro.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/util/macro.h b/src/util/macro.h
index 7df96e8..b643448 100644
--- a/src/util/macro.h
+++ b/src/util/macro.h
@@ -30,6 +30,10 @@
 #define MKINT_BE32(X) ( (X)[0] << 24 | (X)[1] << 16 |  (X)[2] << 8 | (X)[3] )
 #define X_FREE(X)     ( free(X), X = NULL )
 
+#define BD_MIN(a,b) ((a)<(b)?(a):(b))
+#define BD_MAX(a,b) ((a)>(b)?(a):(b))
+
+
 /*
  * automatic cast from void* (malloc/calloc/realloc)
  */



More information about the libbluray-devel mailing list