| commit | 88b607994a148f4af5bffee163e39ce8296750c6 | [log] [tgz] |
|---|---|---|
| author | The Android Open Source Project <initial-contribution@android.com> | Tue Mar 03 19:28:42 2009 -0800 |
| committer | The Android Open Source Project <initial-contribution@android.com> | Tue Mar 03 19:28:42 2009 -0800 |
| tree | fa249ff843e976cf034f2029437d3362a8396321 | |
| parent | 05806d7af62e07c6225b2e7103a1b115ecf6c9ad [diff] [blame] |
auto import from //depot/cupcake/@135843
diff --git a/tools/lsd/common.h b/tools/lsd/common.h new file mode 100644 index 0000000..6447b10 --- /dev/null +++ b/tools/lsd/common.h
@@ -0,0 +1,12 @@ +#ifndef COMMON_H +#define COMMON_H + +#include <libelf.h> +#include <elf.h> + +#define unlikely(expr) __builtin_expect (expr, 0) +#define likely(expr) __builtin_expect (expr, 1) + +#define MIN(a,b) ((a)<(b)?(a):(b)) /* no side effects in arguments allowed! */ + +#endif/*COMMON_H*/