[PATCH] ntdll/tests: Add RtlQueryPerformanceCounter tests.

Rémi Bernon rbernon at codeweavers.com
Thu Mar 18 10:14:42 CDT 2021


On 3/18/21 4:07 PM, Jacek Caban wrote:
> 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
> 

Indeed thanks, I was happy to use the new intrinsic when available. I 
guess we can very well do without it ;)
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list