else
r->float_format = FLOAT_IEEE_DOUBLE_LE;
}
+ if ((r->integer_format == INTEGER_MSB_FIRST && r->float_format != FLOAT_IEEE_DOUBLE_BE) ||
+ (r->integer_format == INTEGER_LSB_FIRST && r->float_format != FLOAT_IEEE_DOUBLE_LE))
+ {
+ printf ("unexpected floating-point format\n");
+ }
+
+ if (r->float_format != FLOAT_IEEE_DOUBLE_LE && r->float_format != FLOAT_IEEE_DOUBLE_BE)
+ {
+ printf ("non-IEEE format\n");
+ } else
+ {
+ printf ("IEEE format\n");
+ }
r->bias = float_get_double (r->float_format, raw_bias);
read_string (r, creation_date, sizeof creation_date);