comparison src/pr-output.cc @ 4574:6cb22b9e3942

[project @ 2003-10-31 05:57:43 by jwe]
author jwe
date Fri, 31 Oct 2003 05:57:44 +0000
parents 802818bfac91
children 0e28461651f2
comparison
equal deleted inserted replaced
4573:c8c06e5ef5db 4574:6cb22b9e3942
1123 1123
1124 std::ios::fmtflags oflags 1124 std::ios::fmtflags oflags
1125 = os.flags (std::ios::right | std::ios::hex); 1125 = os.flags (std::ios::right | std::ios::hex);
1126 1126
1127 if (hex_format > 1 1127 if (hex_format > 1
1128 || flt_fmt == oct_mach_info::ieee_big_endian 1128 || flt_fmt == oct_mach_info::flt_fmt_ieee_big_endian
1129 || flt_fmt == oct_mach_info::cray 1129 || flt_fmt == oct_mach_info::flt_fmt_cray
1130 || flt_fmt == oct_mach_info::unknown) 1130 || flt_fmt == oct_mach_info::flt_fmt_unknown)
1131 { 1131 {
1132 for (size_t i = 0; i < sizeof (double); i++) 1132 for (size_t i = 0; i < sizeof (double); i++)
1133 os << std::setw (2) << static_cast<int> (tmp.i[i]); 1133 os << std::setw (2) << static_cast<int> (tmp.i[i]);
1134 } 1134 }
1135 else 1135 else
1153 // formats and not for Cray? 1153 // formats and not for Cray?
1154 1154
1155 oct_mach_info::float_format flt_fmt = 1155 oct_mach_info::float_format flt_fmt =
1156 oct_mach_info::native_float_format (); 1156 oct_mach_info::native_float_format ();
1157 1157
1158 if (flt_fmt == oct_mach_info::ieee_big_endian 1158 if (flt_fmt == oct_mach_info::flt_fmt_ieee_big_endian
1159 || flt_fmt == oct_mach_info::cray 1159 || flt_fmt == oct_mach_info::flt_fmt_cray
1160 || flt_fmt == oct_mach_info::unknown) 1160 || flt_fmt == oct_mach_info::flt_fmt_unknown)
1161 { 1161 {
1162 for (size_t i = 0; i < sizeof (double); i++) 1162 for (size_t i = 0; i < sizeof (double); i++)
1163 PRINT_CHAR_BITS (os, tmp.i[i]); 1163 PRINT_CHAR_BITS (os, tmp.i[i]);
1164 } 1164 }
1165 else 1165 else