Martin Storsjo martin@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.
On Tue, 2 Dec 2014, Alexandre Julliard wrote:
Martin Storsjo martin@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