diff options
| author | theo3 <arisstephenson2@gmail.com> | 2021-01-31 11:23:42 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2021-01-31 11:23:42 -0800 |
| commit | ced13c2c8d727e01bdb687a4c982ed9296c9e10e (patch) | |
| tree | 90a244a8a4ee7aba1106deae3673c50c8972cbde /include/global.h | |
| parent | b9e07c12024895de9abde045cc1d1421a5bc2139 (diff) | |
finish main.c
Diffstat (limited to 'include/global.h')
| -rw-r--r-- | include/global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 146dfc14..de47c6ac 100644 --- a/include/global.h +++ b/include/global.h @@ -47,6 +47,7 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) >= (b) ? (a) : (b)) +#define BOOLCAST(x) ((-x | x) >> 31) #define static_assert(cond) extern char assertion[(cond) ? 1 : -1] #if NON_MATCHING |
