Skip to content

Commit

Permalink
Merge pull request #243 from matthew-wozniczka/patch-1
Browse files Browse the repository at this point in the history
Add a missing check that __uint128_t exists before using it.
  • Loading branch information
lemire authored Mar 17, 2024
2 parents bafd9d9 + 9ab4ac8 commit 3b54a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_float/float_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ value128 full_multiplication(uint64_t a, uint64_t b) {
answer.low = a * b;
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
#elif defined(FASTFLOAT_64BIT)
#elif defined(FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
__uint128_t r = ((__uint128_t)a) * b;
answer.low = uint64_t(r);
answer.high = uint64_t(r >> 64);
Expand Down

0 comments on commit 3b54a78

Please sign in to comment.