gallium: More tweaks for the cosf/sinf logic.

This commit is contained in:
José Fonseca
2008-06-02 21:43:31 +09:00
parent aa1a39d1a7
commit 5027411134

View File

@@ -410,8 +410,9 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch,
#if defined(_MSC_VER) && !defined(__cplusplus)
#if defined(_MSC_VER)
#if _MSC_VER < 1400 && !defined(__cplusplus)
static INLINE float cosf( float f )
{
return (float) cos( (double) f );
@@ -452,7 +453,14 @@ static INLINE float logf( float f )
return (float) log( (double) f );
}
#else
/* Work-around an extra semi-colon in VS 2005 logf definition */
#ifdef logf
#undef logf
#define logf(x) ((float)log((double)(x)))
#endif /* logf */
#endif
#endif /* _MSC_VER */
#ifdef __cplusplus