Skip to content

Commit 442029c

Browse files
<xcharconv_ryu.h>: __umulh is already an intrinsic for _M_HYBRID_X86_ARM64 (#4330)
1 parent 0cb9eb4 commit 442029c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/xcharconv_ryu.h

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ _NODISCARD inline uint64_t __ryu_shiftright128(const uint64_t __lo, const uint64
211211

212212
#ifndef _WIN64
213213

214+
#if !defined(_M_HYBRID_X86_ARM64)
214215
// Returns the high 64 bits of the 128-bit product of __a and __b.
215216
_NODISCARD inline uint64_t __umulh(const uint64_t __a, const uint64_t __b) {
216217
// Reuse the __ryu_umul128 implementation.
@@ -220,6 +221,7 @@ _NODISCARD inline uint64_t __umulh(const uint64_t __a, const uint64_t __b) {
220221
(void) __ryu_umul128(__a, __b, &__hi);
221222
return __hi;
222223
}
224+
#endif // ^^^ !defined(_M_HYBRID_X86_ARM64) ^^^
223225

224226
// On 32-bit platforms, compilers typically generate calls to library
225227
// functions for 64-bit divisions, even if the divisor is a constant.

0 commit comments

Comments
 (0)