18 Mar
2021
18 Mar
'21
3:07 p.m.
Hi Rémi, On 17.03.2021 10:31, Rémi Bernon wrote:
+#ifndef _MSVC_VER +static UINT64 __umulh(UINT64 a, UINT64 b) +{ + UINT64 ah = a >> 32, al = (UINT32)a, bh = b >> 32, bl = (UINT32)b, m; + m = (ah * bl) + (bh * al) + ((al * bl) >> 32); + return (ah * bh) + (m >> 32); +} +#endif
I think you meant _MSC_VER here and it's not available for 32-bit targets anyway. You could just rename the helper to avoid the collision instead. Jacek