gmio_core: fix fallback of gmio_powf()

This commit is contained in:
Hugues Delorme 2016-03-14 17:35:18 +01:00
parent 33317b2613
commit 2bce508e56

View File

@ -24,8 +24,8 @@
# define gmio_powf powf
#else
/* No powf() function, call pow(double) as fallback */
GMIO_INLINE float gmio_powf(float x)
{ return (float)pow((double)x); }
GMIO_INLINE float gmio_powf(float base, float exponent)
{ return (float)pow((double)base, (double)exponent); }
#endif
#ifdef GMIO_HAVE_SQRTF_FUNC