C++ support for decimal floating point

Janis Johnson janis187@us.ibm.com
Tue Sep 29 20:20:00 GMT 2009


On Wed, 2009-09-23 at 14:21 -0700, Richard Henderson wrote:
> On 09/23/2009 02:11 PM, Janis Johnson wrote:
> > The class types for std::decimal::decimal32 and friends do have the
> > proper modes.  I suppose I could special-case aggregates of those modes
> > but the plan was to pass these particular classes (and typedefs of
> > them) the same as scalars, rather than _any_ class with those modes.
> > I'll bring this up again on the C++ ABI mailing list.
> 
> You could special-case this in the C++ conversion to generic
> by having the std::decimal classes decompose to scalars immediately.

I've been trying to find a place in the C++ front end where I can
replace all references to the class type to the scalar types, but
haven't yet found it.  Any suggestions?

Janis



More information about the Libstdc++ mailing list