Skip to content

Commit

Permalink
Synology build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Safihre committed May 19, 2024
1 parent ee6f26f commit 3d99d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yencode/crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static inline int crc32_isa_level() {

// computes `n % 0xffffffff` (well, almost), using some bit-hacks
static inline uint32_t crc32_powmod(uint64_t n) {
#ifdef __GNUC__
#if defined(__GNUC__) && (__GNUC__ >= 5 || (defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ > 3))))
unsigned res;
unsigned carry = __builtin_uadd_overflow(n >> 32, n, &res);
res += carry;
Expand Down

0 comments on commit 3d99d7e

Please sign in to comment.