From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26610 invoked by alias); 23 Sep 2009 21:21:37 -0000 Received: (qmail 26596 invoked by uid 22791); 23 Sep 2009 21:21:36 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Sep 2009 21:21:29 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8NLLR6n011491; Wed, 23 Sep 2009 17:21:28 -0400 Received: from stone.twiddle.home (vpn-240-91.phx2.redhat.com [10.3.240.91]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8NLLReq009212; Wed, 23 Sep 2009 17:21:27 -0400 Message-ID: <4ABA9153.1010803@redhat.com> Date: Wed, 23 Sep 2009 21:21:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: janis187@us.ibm.com CC: Richard Guenther , gcc@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: C++ support for decimal floating point References: <1253666313.6130.8.camel@janis-laptop> <84fc9c000909230129w167878ccn2b3402b7305d1366@mail.gmail.com> <1253740316.5999.6.camel@janis-laptop> In-Reply-To: <1253740316.5999.6.camel@janis-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00481.txt.bz2 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.