24 g2int isign,iexp,imant;
30 g2int msk2=0x7F800000;
31 g2int msk3=0x007FFFFF;
43 isign=(rieee[j]&msk1)>>31;
44 iexp=(rieee[j]&msk2)>>23;
45 imant=(rieee[j]&msk3);
49 if (isign == 1) sign=-1.0;
51 if ( (iexp > 0) && (iexp < 255) ) {
53 a[j]=sign*temp*(1.0+(two23*(
g2float)imant));
55 else if ( iexp == 0 ) {
57 a[j]=sign*two126*two23*(
g2float)imant;
62 else if ( iexp == 255 )
Header file for NCEPLIBS-g2c library.
uint64_t g2intu
Unsigned long integer type.
int64_t g2int
Long integer type.
double int_power(double x, g2int y)
Function similar to C pow() power function.
void rdieee(g2int *rieee, g2float *a, g2int num)
This subroutine reads a list of real values in 32-bit IEEE floating point format.