aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-10 23:16:53 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-30 23:07:56 +0200
commit8963b95e1aacddd3329ff3ed5d1c4957685df4b3 (patch)
tree9689fcfafa1bc4ed88244d26969094703c9d6c22
parent3887a949a71f3bf2d7c17a4b4c9538d3bb7f6d86 (diff)
Fix warning if __SIZEOF_INT128__ is not defined
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/util/fast_urem_by_const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/fast_urem_by_const.h b/lib/util/fast_urem_by_const.h
index 073f9e0..4fb78d3 100644
--- a/lib/util/fast_urem_by_const.h
+++ b/lib/util/fast_urem_by_const.h
@@ -50,7 +50,7 @@
static inline sqfs_u32
_mul32by64_hi(sqfs_u32 a, sqfs_u64 b)
{
-#if __SIZEOF_INT128__ == 16
+#if defined(__SIZEOF_INT128__) && __SIZEOF_INT128__ == 16
return ((__uint128_t) b * a) >> 64;
#else
/*