[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/server tesselate.cpp
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash/server tesselate.cpp |
Date: |
Mon, 12 Feb 2007 14:55:35 +0100 |
On Mon, Feb 12, 2007 at 01:49:16PM +0000, Martin Guy wrote:
> >> - float dist = fabsf(midx - qx) + fabsf(midy - qy);
> >> + float dist = std::fabsf(midx - qx) + std::fabsf(midy -
> >qy);
> >
> >server/tesselate.cpp:500: error: 'fabsf' is not a member of 'std'
>
> I read somewhere in the source that MacOSX has no fabsf function, and
> it is #defined into fabs(f) in a gnash header.
std::abs() does just fine.
It's a set of overloaded inline functions defined in <cmath>
inline double
abs(double __x)
{ return __builtin_fabs(__x); }
inline float
abs(float __x)
{ return __builtin_fabsf(__x); }
inline long double
abs(long double __x)
{ return __builtin_fabsl(__x); }
--strk;