Skip to content

Commit 9ca7ede

Browse files
committed
Fix _addcarry_u64 macro for MSVC
1 parent c15f0a5 commit 9ca7ede

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/boost/decimal/detail/config.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
# else
8686
# define BOOST_DECIMAL_HAS_MSVC_32BIT_INTRINSICS
8787
# endif
88+
# if defined(__ADX__) && defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
89+
# define BOOST_DECIMAL_ADD_CARRY _addcarryx_u64
90+
# elif defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
91+
# define BOOST_DECIMAL_ADD_CARRY _addcarry_u64
92+
# endif
8893
#elif defined(__x86_64__)
8994
# ifndef BOOST_DECIMAL_BUILD_MODULE
9095
# include <x86intrin.h>

0 commit comments

Comments
 (0)