[PATCH] msvcr120: Implement more C99 math functions.

Martin Storsjö martin at martin.st
Mon Dec 8 06:33:19 CST 2014


On Mon, 8 Dec 2014, Piotr Caban wrote:

> On 12/06/14 17:07, Martin Storsjo wrote:
>> +/*********************************************************************
>> + *      cbrt (MSVCR120.@)
>> + */
>> +double CDECL MSVCR120_cbrt(double x)
>> +{
>> +#ifdef HAVE_CBRT
>> +    return cbrt(x);
>> +#else
>> +    return x < 0 ? -powf(-x, 1.0 / 3.0) : powf(x, 1.0 / 3.0);
>> +#endif
> Please use pow instead of powf here.

Oh, indeed, thanks for catching.

// Martin



More information about the wine-devel mailing list