Back to index

glibc  2.9
Functions | Variables
s_frexpf.c File Reference
#include "math.h"
#include "math_private.h"

Go to the source code of this file.

Functions

float __frexpf (float x, int *eptr)

Variables

static float two25 = 3.3554432000e+07

Function Documentation

float __frexpf ( float  x,
int eptr 
)

Definition at line 33 of file s_frexpf.c.

{
       int32_t hx,ix;
       GET_FLOAT_WORD(hx,x);
       ix = 0x7fffffff&hx;
       *eptr = 0;
       if(ix>=0x7f800000||(ix==0)) return x;     /* 0,inf,nan */
       if (ix<0x00800000) {        /* subnormal */
           x *= two25;
           GET_FLOAT_WORD(hx,x);
           ix = hx&0x7fffffff;
           *eptr = -25;
       }
       *eptr += (ix>>23)-126;
       hx = (hx&0x807fffff)|0x3f000000;
       SET_FLOAT_WORD(x,hx);
       return x;
}

Here is the caller graph for this function:


Variable Documentation

float two25 = 3.3554432000e+07 [static]

Definition at line 28 of file s_frexpf.c.