diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-10 16:02:24 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-10 16:02:24 +0100 |
| commit | 62c8a6c887809641c4fd6f21cd24b0b26aae48e8 (patch) | |
| tree | 0f254e63b912219ca807cac0ab6e0e2c1029b619 /utils.h | |
| parent | 9112fe39b696fa91620f1637fbc71772091917a3 (diff) | |
Optimize day 10
Diffstat (limited to 'utils.h')
| -rw-r--r-- | utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#ifndef AOC_UTILS_H +#define AOC_UTILS_H + +#define likely(x) __builtin_expect((x), 1) +#define unlikely(x) __builtin_expect((x), 0) + +#endif |
