Skip to content

Commit

Permalink
Fix _addcarry_u64 macro for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jul 1, 2024
1 parent c15f0a5 commit 9ca7ede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/boost/decimal/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
# else
# define BOOST_DECIMAL_HAS_MSVC_32BIT_INTRINSICS
# endif
# if defined(__ADX__) && defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
# define BOOST_DECIMAL_ADD_CARRY _addcarryx_u64
# elif defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
# define BOOST_DECIMAL_ADD_CARRY _addcarry_u64
# endif
#elif defined(__x86_64__)
# ifndef BOOST_DECIMAL_BUILD_MODULE
# include <x86intrin.h>
Expand Down

0 comments on commit 9ca7ede

Please sign in to comment.