rsa: add msvc intrinsic for non x64 platforms
authorHubert Kario <hkario@redhat.com>
Wed, 8 Feb 2023 13:13:24 +0000 (14:13 +0100)
committerTomas Mraz <tomas@openssl.org>
Sat, 11 Feb 2023 13:57:16 +0000 (14:57 +0100)
commiteec34033552c810132736c772d37547f097a51b0
tree9202b74f1f657b47f1aa07c9390027c30f590a44
parentfd42c9126844f5eefa76872a1ffe5f529f8f75df
rsa: add msvc intrinsic for non x64 platforms

_umul128() is x86_64 (x64) only, while __umulh() works everywhere, but
doesn't generate optimal code on x64

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20244)

(cherry picked from commit 075652f224479dad2e64b92e791b296177af8705)
crypto/bn/rsa_sup_mul.c