gmio_core: fix fallback of gmio_powf()
This commit is contained in:
parent
33317b2613
commit
2bce508e56
@ -24,8 +24,8 @@
|
|||||||
# define gmio_powf powf
|
# define gmio_powf powf
|
||||||
#else
|
#else
|
||||||
/* No powf() function, call pow(double) as fallback */
|
/* No powf() function, call pow(double) as fallback */
|
||||||
GMIO_INLINE float gmio_powf(float x)
|
GMIO_INLINE float gmio_powf(float base, float exponent)
|
||||||
{ return (float)pow((double)x); }
|
{ return (float)pow((double)base, (double)exponent); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GMIO_HAVE_SQRTF_FUNC
|
#ifdef GMIO_HAVE_SQRTF_FUNC
|
||||||
|
Loading…
Reference in New Issue
Block a user