This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Two small patches
Gabriel Dos_Reis wrote:
>
> In fact, the 'correct' fix is
>
> inline float
> modf(float __x, float* __y) { return ::modff(__x, __y); }
>
> that is I should have written ::modff(); not ::modf().
This is interesting, as I was under
the impression, that the intend of this header
is to implement float function with their
double equivalents.
So as it is possible to use the '___f' versions,
what is the point in going through doubles at
all.
so for example with sin() instead of
inline float
sin(float __x) { return ::sin(__x); }
why not
inline float
sin(float __x) { return ::sinf(__x); }
or in fact all three of them
inline float
sin(float __x) { return ::sinf(__x); }
inline double
sin(double __x) { return ::sin(__x); }
inline long double
sin(long double __x) { return ::sinl(__x); }
Alfred