• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 
7 #include <math.h>
8 #include <limits.h>
9 
10 extern float (* __MINGW_IMP_SYMBOL(powf))(float, float);
11 
powf(float x,float y)12 float powf(float x, float y)
13 {
14   if (x == 1.0f)
15     return 1.0f;
16   if (y == 0.0f)
17     return 1.0f;
18   if (x == -1.0f && isinf(y))
19     return 1.0f;
20   return __MINGW_IMP_SYMBOL(powf)(x, y);
21 }
22