diff options
author | Matt Turner <mattst88@gmail.com> | 2020-04-26 11:42:03 -0700 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-04-27 12:49:25 +0200 |
commit | 6a0d2f053ba32c63bb9a3c40135f8d5bb46c9cb0 (patch) | |
tree | ed578318e67ef7d3cd7c26dc29856a514ea683ef | |
parent | 20143cd6b0edf4756c556ed6626d6a6c6f22fb41 (diff) |
Enable uint128_t path
I forgot to enable this when I copied it over from Mesa. Mesa's
meson configuration system checks that a C program using the uint128_t
type compiles, but I think this is likely unnecessary. Simply check the
macro that clang and gcc define.
This cuts the .text size of hash_table.o by 160 bytes or about 4% on my
system.
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | lib/util/fast_urem_by_const.h | 2 |
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 62b22a6..f5b0664 100644 --- a/lib/util/fast_urem_by_const.h +++ b/lib/util/fast_urem_by_const.h @@ -48,7 +48,7 @@ static inline uint32_t _mul32by64_hi(uint32_t a, uint64_t b) { -#ifdef HAVE_UINT128 +#if __SIZEOF_INT128__ == 16 return ((__uint128_t) b * a) >> 64; #else /* |