• 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 double (* __MINGW_IMP_SYMBOL(pow))(double, double);
11 
pow(double x,double y)12 double pow(double x, double y)
13 {
14   if (x == 1.0)
15     return 1.0;
16   if (y == 0.0)
17     return 1.0;
18   if (x == -1.0 && isinf(y))
19     return 1.0;
20   return __MINGW_IMP_SYMBOL(pow)(x, y);
21 }
22