message: small changes to print_floats
diff: @@ -46,15 +46,10 @@ int main(int argc, const char **argv) {
  std::cout.precision(std::numeric_limits<double>::digits10 + 1);
  - auto print_triplet = [&]( double d, bool add_trailing_comma = false,
  - int left_padding = 0, bool add_newline_at_end = true) {
  + auto print_triplet = [&]( double d, int left_padding = 0 ) {
  std::cout << std::setw(left_padding) << "";
  std::cout << "[\"0x" << std::hex << *(uint64_t*)(&d) << "\", \""
  << std::hexfloat << d << "\", \"" << std::fixed << d << "\"]";
  - if( add_trailing_comma )
  - std::cout << ",";
  - if( add_newline_at_end )
  - std::cout << std::endl;
  };
  if( num_cases > 0 ) {
  @@ -70,7 +65,12 @@ int main(int argc, const char **argv) {
  if( !(lbound <= v && v <= ubound) ) continue;
  - print_triplet(v, n != end, 2);
  + print_triplet(v, 2);
  + if( n != end )
  + std::cout << ",";
  +
  + std::cout << std::endl;
  +
  ++n;
  }
  std::cout << "]" << std::endl;
  @@ -82,15 +82,19 @@ int main(int argc, const char **argv) {
  using nld = std::numeric_limits<double>;
  - std::cout << " lowest(): "; print_triplet(nld::lowest());
  - std::cout << " min(): "; print_triplet(nld::min());
  - std::cout << " max(): "; print_triplet(nld::max());
  - std::cout << " epsilon(): "; print_triplet(nld::epsilon());
  - std::cout << " round_error(): "; print_triplet(nld::round_error());
  - std::cout << " infinity(): "; print_triplet(nld::infinity());
  - std::cout << " quiet_NaN(): "; print_triplet(nld::quiet_NaN());
  - std::cout << " signaling_NaN(): "; print_triplet(nld::signaling_NaN());
  - std::cout << " denorm_min(): "; print_triplet(nld::denorm_min(), false);
  + std::cout << std::endl << " lowest(): "; print_triplet(nld::lowest());
  + std::cout << std::endl << " min(): "; print_triplet(nld::min());
  + std::cout << std::endl << " max(): "; print_triplet(nld::max());
  + std::cout << std::endl << " epsilon(): "; print_triplet(nld::epsilon());
  + std::cout << std::endl << " round_error(): "; print_triplet(nld::round_error());
  + std::cout << std::endl << " +0: "; print_triplet(0.0);
  + std::cout << std::endl << " -0: "; print_triplet(-0.0);
  + std::cout << std::endl << " infinity(): "; print_triplet(nld::infinity());
  + std::cout << std::endl << " -infinity(): "; print_triplet(-nld::infinity());
  + std::cout << std::endl << " quiet_NaN(): "; print_triplet(nld::quiet_NaN());
  + std::cout << std::endl << " signaling_NaN(): "; print_triplet(nld::signaling_NaN());
  + std::cout << std::endl << " denorm_min(): "; print_triplet(nld::denorm_min());
  + std::cout << std::endl;
  }
  