Skip to content

Commit df60370

Browse files
committed
Fix missing sub borrow instrinsic
1 parent 81eba55 commit df60370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/boost/decimal/detail/config.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@
9797
# endif
9898
# if defined(__ADX__) && defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
9999
# define BOOST_DECIMAL_ADD_CARRY _addcarryx_u64
100+
# define BOOST_DECIMAL_SUB_BORROW _subborrow_u64
100101
# elif defined(BOOST_DECIMAL_HAS_MSVC_64BIT_INTRINSICS)
101102
# define BOOST_DECIMAL_ADD_CARRY _addcarry_u64
103+
# define BOOST_DECIMAL_SUB_BORROW _subborrow_u64
102104
# endif
103105
#elif defined(__x86_64__)
104106
# ifndef BOOST_DECIMAL_BUILD_MODULE
@@ -107,8 +109,10 @@
107109
# define BOOST_DECIMAL_HAS_X64_INTRINSICS
108110
# ifdef __ADX__
109111
# define BOOST_DECIMAL_ADD_CARRY _addcarryx_u64
112+
# define BOOST_DECIMAL_SUB_BORROW _subborrow_u64
110113
# else
111114
# define BOOST_DECIMAL_ADD_CARRY _addcarry_u64
115+
# define BOOST_DECIMAL_SUB_BORROW _subborrow_u64
112116
# endif
113117
#elif defined(__ARM_NEON__)
114118
# ifndef BOOST_DECIMAL_BUILD_MODULE

0 commit comments

Comments
 (0)