[PATCH v2 3/3] msvcr120: Add log1p.

Piotr Caban piotr.caban at gmail.com
Mon Jul 17 09:18:56 CDT 2017


Hi,

On 07/16/17 05:11, Alex Henrie wrote:
> 2017-07-14 4:20 GMT-06:00 Piotr Caban <piotr.caban at gmail.com>:
>> On 07/14/17 07:14, Alex Henrie wrote:
>>>
>>> +/*********************************************************************
>>> + *      log1pf (MSVCR120.@)
>>> + */
>>> +float CDECL MSVCR120_log1pf(float x)
>>> +{
>>> +#ifdef HAVE_LOG1PF
>>> +    return log1pf(x);
>>> +#else
>>> +    return log(1 + x);
>>> +#endif
>>> +}
>>
>> Please also set errno in this function.
> 
> The Microsoft implementations of log2 and log1p are buggy: Despite
> what MSDN says, they do not set errno.
> 
> In fact, as far as I can tell, Microsoft's acosh, atanh, and expm1
> don't set errno either. Do you want tests for this?
New versions are setting the errno. You can e.g. test it with ucrtbase.

Thanks,
Piotr



More information about the wine-devel mailing list