diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-12 22:53:19 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-12 22:53:19 +0100 |
| commit | 764bada19e30aae18287e97a9d7141ac78e1bb36 (patch) | |
| tree | f8c27d0c53f16a070ec982541b5bd2a86433f4e7 /utils.h | |
| parent | cbaaf6b1fd471e5ef18a6efa29e54ea9ce23d729 (diff) | |
Add day 12
Diffstat (limited to 'utils.h')
| -rw-r--r-- | utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef AOC_UTILS_H #define AOC_UTILS_H +#define SWAP(a, b) (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b))) + #define likely(x) __builtin_expect((x), 1) #define unlikely(x) __builtin_expect((x), 0) |
