diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-10-30 18:16:09 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-10-30 18:16:09 +0000 |
commit | 20d626572bf95cd20bfeec98e81a74a2b40366b8 (patch) | |
tree | 10202e31c07d52a43d0a4d37ce45aba3579e120c /payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h | |
parent | 9ac9e94b452b5ac58b6f7c44f1356b8e212ffcec (diff) | |
download | coreboot-20d626572bf95cd20bfeec98e81a74a2b40366b8.tar.xz |
drop svn:externals in the tree and add it locally.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4898 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h')
-rw-r--r-- | payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h b/payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h new file mode 100644 index 0000000000..69b8ecea82 --- /dev/null +++ b/payloads/bayou/util/pbuilder/lzma/C/Common/Defs.h @@ -0,0 +1,20 @@ +// Common/Defs.h
+
+#ifndef __COMMON_DEFS_H
+#define __COMMON_DEFS_H
+
+template <class T> inline T MyMin(T a, T b)
+ { return a < b ? a : b; }
+template <class T> inline T MyMax(T a, T b)
+ { return a > b ? a : b; }
+
+template <class T> inline int MyCompare(T a, T b)
+ { return a < b ? -1 : (a == b ? 0 : 1); }
+
+inline int BoolToInt(bool value)
+ { return (value ? 1: 0); }
+
+inline bool IntToBool(int value)
+ { return (value != 0); }
+
+#endif
|