[PATCH 02/15] msvcr120: Implement more C99 math functions.

Martin Storsjö martin at martin.st
Wed Dec 3 04:54:26 CST 2014


On Tue, 2 Dec 2014, Alexandre Julliard wrote:

> Martin Storsjo <martin at martin.st> writes:
>
>> Implement the *rint, trunc, *round, log2, exp2 and cbrt
>> function families.
>>
>> These are directly passed on to the corresponding host
>> libc functions.
>
> You can't do that, there's no guarantee that the host has these
> functions.

Ok, so I should try to detect whether the host libc has got the C99 
functions, and try to emulate them using other (C90) functions otherwise.

I did notice that msvcrt already uses sinhf unconditionally, and this is 
also a function only available since C99.

// Martin



More information about the wine-devel mailing list