commit | b6c1cf6de79035f58b512f4400db458c8401379a | [log] [tgz] |
---|---|---|
author | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
tree | 68979db37c85b499bc384e4ac337ed1424baab51 |
Initial Contribution
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*/