1
0
Fork 0

Update include.hh

This commit is contained in:
Ariel 2024-02-11 12:34:13 +08:00 committed by GitHub
parent f119a596fe
commit da03e2446e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ constexpr int INF = 0x3f3f3f3f;
constexpr ull MDL = 1e9 + 7; constexpr ull MDL = 1e9 + 7;
constexpr ull PRIME = 998'244'353; constexpr ull PRIME = 998'244'353;
constexpr ull MDL1 = 825; constexpr ull MDL1 = 825;
constexpr ull MDL2 = 87825; constexpr ull MDL2 = PRIME;
/* bit-wise operations */ /* bit-wise operations */
#define lowbit(x) ((x) & -(x)) #define lowbit(x) ((x) & -(x))
@ -43,7 +43,7 @@ constexpr ull MDL2 = 87825;
#define lsp(x) (__builtin_ctzll(ll(x))) #define lsp(x) (__builtin_ctzll(ll(x)))
/* arithmetic operations */ /* arithmetic operations */
#define mod(x, y) (((x) % (y) + (y)) % (y)) #define mod(x, y) ((((x) % (y)) + (y)) % (y))
/* fast pairs */ /* fast pairs */
#define upair ull #define upair ull