Skip to content

Commit 93eeb1a

Browse files
committed
bypass windows clang linker issue
1 parent 0a1c5fb commit 93eeb1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fio-stl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,7 @@ Fun Primes
27422742

27432743
/** Perform modular multiplication for numbers with up to 64 bits. */
27442744
FIO_IFUNC uint64_t fio_math_mod_mul(uint64_t a, uint64_t b, uint64_t mod) {
2745-
#if defined(__SIZEOF_INT128__)
2745+
#if defined(__SIZEOF_INT128__) && !FIO_OS_WIN
27462746
return (uint64_t)(((__uint128_t)a * b) % mod);
27472747
#else
27482748
uint64_t r = 0;

fio-stl/000 core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ Fun Primes
27052705

27062706
/** Perform modular multiplication for numbers with up to 64 bits. */
27072707
FIO_IFUNC uint64_t fio_math_mod_mul(uint64_t a, uint64_t b, uint64_t mod) {
2708-
#if defined(__SIZEOF_INT128__)
2708+
#if defined(__SIZEOF_INT128__) && !FIO_OS_WIN
27092709
return (uint64_t)(((__uint128_t)a * b) % mod);
27102710
#else
27112711
uint64_t r = 0;

0 commit comments

Comments
 (0)