[PATCH 7/9] msvcr120: Add erfc.

Piotr Caban piotr.caban at gmail.com
Tue Jul 11 07:31:34 CDT 2017


On 07/11/17 14:11, Piotr Caban wrote:
> On 07/10/17 06:55, Alex Henrie wrote:
>>   /*********************************************************************
>> + *      erfc (MSVCR120.@)
>> + */
>> +double CDECL MSVCR120_erfc(double x)
>> +{
>> +#ifdef HAVE_ERFC
>> +    return erfc(x);
>> +#else
>> +    FIXME( "not implemented\n" );
>> +    return 0.0;
>> +#endif
> You can return 1.0 - MSVCR120_erf(x) if erfc is not available.
After thinking about it more I don't know if it's better to print FIXME 
or return inaccurate value when erf(x) is close to 1. How about 
returning approximate value and printing FIXME message?

Thanks,
Piotr



More information about the wine-devel mailing list