Back to index

glibc  2.9
Functions
w_powl.c File Reference
#include <math.h>
#include "math_private.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

long double __powl (long double x, long double y)

Function Documentation

long double __powl ( long double  x,
long double  y 
)

Definition at line 28 of file w_powl.c.

{
#ifdef _IEEE_LIBM
       return  __ieee754_powl(x,y);
#else
       long double z;
       z=__ieee754_powl(x,y);
       if(_LIB_VERSION == _IEEE_|| __isnanl(y)) return z;
       if(__isnanl(x)) {
           if(y==0.0)
               return __kernel_standard(x,y,242); /* pow(NaN,0.0) */
           else
              return z;
       }
       if(x==0.0) {
           if(y==0.0)
               return __kernel_standard(x,y,220); /* pow(0.0,0.0) */
           if(__finitel(y)&&y<0.0) {
             if (signbit (x) && signbit (z))
               return __kernel_standard(x,y,223); /* pow(-0.0,negative) */
             else
               return __kernel_standard(x,y,243); /* pow(+0.0,negative) */
           }
           return z;
       }
       if(!__finitel(z)) {
           if(__finitel(x)&&__finitel(y)) {
               if(__isnanl(z))
                   return __kernel_standard(x,y,224); /* pow neg**non-int */
               else
                   return __kernel_standard(x,y,221); /* pow overflow */
           }
       }
       if(z==0.0&&__finitel(x)&&__finitel(y))
           return __kernel_standard(x,y,222); /* pow underflow */
       return z;
#endif
}

Here is the call graph for this function: