Skip to content

Commit

Permalink
Only with _WIN64 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Jul 22, 2022
1 parent b216eb2 commit 8d3681d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/int128_struct_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "int128.h"

#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_ARM64)) /* MSVC */
#if defined(_MSC_VER) && defined(_WIN64) && (defined(_M_X64) || defined(_M_ARM64)) /* 64-bit MSVC */
# if defined(_M_X64)
/* On x84_64 MSVC, use native __(u)mul128 for 64x64->128 multiplications. */
# include <intrin.h>
Expand Down
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static SECP256K1_INLINE void secp256k1_int_cmov(int *r, const int *a, int flag)
#elif defined(UINT128_MAX) || defined(__SIZEOF_INT128__)
# define SECP256K1_WIDEMUL_INT128 1
# define SECP256K1_INT128_NATIVE 1
#elif defined(_MSC_VER) && (defined(_M_X64) || defined(_M_ARM64))
#elif defined(_MSC_VER) && defined(_WIN64) && (defined(_M_X64) || defined(_M_ARM64))
# define SECP256K1_WIDEMUL_INT128 1
# define SECP256K1_INT128_STRUCT 1
#else
Expand Down

0 comments on commit 8d3681d

Please sign in to comment.