Skip to content

operator<</>> for __float128 are poore #1118

Open
@gpeterhoff

Description

@gpeterhoff

generally

  • hexfloat is not supported
  • in the implementations, exceptions are used for flow control -> this procedure is/(has never been) sensible

Suggestions
a) via quadmath_snprintf/strtoflt128

  • for gcc the operators can be updated
  • this may also be possible for intel
  1. reasonably current intel compilers also seem to provide quadmath_snprintf/strtoflt128. Is that correct? Then you can use these functions.
  2. What relevance does __float128/_Quad still have for intel? This could then be removed if necessary.

b) via std/boost to_chars/from_chars

  • std
  1. If std::float128_t is available, these functions can be used
  2. Possibly these functions are still implemented in gcc for __float128 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113260

regards
Gero

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions