25 g2int isign,iexp,imant;
28 static float two23,two126;
29 static g2int test = 0;
30 uint64_t msk1 = 0x80000000;
31 g2int msk2 = 0x7F800000;
32 g2int msk3 = 0x007FFFFF;
41 for (j = 0; j < num; j++)
44 isign = (rieee[j]&msk1)>>31;
45 iexp = (rieee[j]&msk2)>>23;
46 imant = (rieee[j]&msk3);
53 if ((iexp > 0) && (iexp < 255))
55 temp = (float)
int_power(2.0, (iexp - 127));
56 a[j] = sign * temp * (1.0 + (two23 * (float)imant));
61 a[j] = sign * two126 * two23 * (float)imant;
67 a[j] = sign * (1E+37);
int64_t g2int
Long integer type.
Header file with internal function prototypes NCEPLIBS-g2c library.
double int_power(double x, g2int y)
Function similar to C pow() power function.
void rdieee(g2int *rieee, float *a, g2int num)
This subroutine reads a list of real values in 32-bit IEEE floating point format.