diff options
author | repo sync <gcondra@google.com> | 2013-07-26 17:53:31 -0700 |
---|---|---|
committer | repo sync <gcondra@google.com> | 2013-07-29 11:00:59 -0700 |
commit | baa3858d3f5d128a5c8466b700098109edcad5f2 (patch) | |
tree | 2860fc3eaf476caa6296788b828f296a5ee37486 /CPP/Common/Defs.h | |
parent | dd8f4f771627dacc36cd45f18c2b54f939471065 (diff) | |
download | lzma-baa3858d3f5d128a5c8466b700098109edcad5f2.tar.gz |
Lightly modified commit of lzma sdk version 9.20.android-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1android-cts-4.4_r4android-cts-4.4_r1android-4.4w_r1android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.4_r0.7android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1android-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1kitkat-wearkitkat-releasekitkat-mr2.2-releasekitkat-mr2.1-releasekitkat-mr2-releasekitkat-mr1.1-releasekitkat-mr1-releasekitkat-devkitkat-cts-releasekitkat-cts-dev
The only change from stock lzma sdk is the removal of two
.exe files, which we don't need.
Change-Id: I46287cbc416161e93b449761ebe531acd758cf95
Diffstat (limited to 'CPP/Common/Defs.h')
-rwxr-xr-x | CPP/Common/Defs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CPP/Common/Defs.h b/CPP/Common/Defs.h new file mode 100755 index 0000000..69b8ece --- /dev/null +++ b/CPP/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
|