1
0
Fork 0

Update include.hh

This commit is contained in:
Ariel 2024-01-16 19:01:25 +08:00 committed by GitHub
parent 20aa2581bf
commit 58535bb387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ constexpr ull MDL2 = 87825;
#define msp(x) (63LL - __builtin_clzll(ll(x))) #define msp(x) (63LL - __builtin_clzll(ll(x)))
#define lsp(x) (__builtin_ctzll(ll(x))) #define lsp(x) (__builtin_ctzll(ll(x)))
/* arithmetic operations */
#define mod(x, y) (((x) + (y)) % (y))
/* fast pairs */ /* fast pairs */
#define upair ull #define upair ull
#define umake(x, y) (ull(x) << 32 | ull(y)) #define umake(x, y) (ull(x) << 32 | ull(y))