Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 54093 invoked from network); 23 Apr 2008 16:48:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 16:48:45 -0000 Received: (qmail 77839 invoked by uid 500); 23 Apr 2008 16:48:45 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 77824 invoked by uid 500); 23 Apr 2008 16:48:45 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 77792 invoked by uid 99); 23 Apr 2008 16:48:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 09:48:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msebor@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 16:47:59 +0000 Received: by wa-out-1112.google.com with SMTP id j4so5255148wah.21 for ; Wed, 23 Apr 2008 09:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=ZmzeYcudvZTOlaNv/mhBP4g8CD2gtzASpM5bg7nW8S0=; b=qKTuy7bLE3MV8YTDc1nHO3BVaaqv2IqxGVPxxke5inTkqAXKXnkKCc5JXtRVTJfabTPj/7PAiEOxjOyanGvUgsDNDWkovWJQoSbJAv6bVxEGceB16UvE06tJjFOc8M6RyojvVB8NNwPt2iYTB1Q+VwSmCKpgrn2J10barRzkiGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=uhSGiwlv97uyT91HLSrjwoWcf4/aLMRL8B5O33XuTCv2nYyf5tVRayfufDbIKESGkmQUp2EdFYJDZcfWeUngwQEb04Myx5L0FFfZYn1NeqFD8Pn2cKdopDjqocQkF5SGnN5ps2J11obEy9nbfwxGluLVPrKiUrnjvJvDmyrd0/o= Received: by 10.115.49.16 with SMTP id b16mr568617wak.65.1208969292688; Wed, 23 Apr 2008 09:48:12 -0700 (PDT) Received: from localhost.localdomain ( [71.229.200.170]) by mx.google.com with ESMTPS id y25sm423524pod.5.2008.04.23.09.48.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Apr 2008 09:48:12 -0700 (PDT) Message-ID: <480F684A.3090005@roguewave.com> Date: Wed, 23 Apr 2008 10:48:10 -0600 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: svn commit: r650933 - /stdcxx/trunk/src/num_put.cpp References: <20080423162556.7CA4F1A9832@eris.apache.org> In-Reply-To: <20080423162556.7CA4F1A9832@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org faridz@apache.org wrote: > Author: faridz > Date: Wed Apr 23 09:25:44 2008 > New Revision: 650933 > > URL: http://svn.apache.org/viewvc?rev=650933&view=rev > Log: > 2008-04-23 Farid Zaripov > > STDCXX-880 > * src/num_put.cpp [_RWSTD_DBL_SIZE == _RWSTD_LDBL_SIZE]: Call double type overload > from long double type overload when sizeof (double) == sizeof (long double). What about __rw_fmat_infinite()? Do we need overloads for float and long double or is the conversion from those two types safe (as in doesn't trigger traps or floating exceptions) and adequately efficient? Martin > > Modified: > stdcxx/trunk/src/num_put.cpp > > Modified: stdcxx/trunk/src/num_put.cpp > URL: http://svn.apache.org/viewvc/stdcxx/trunk/src/num_put.cpp?rev=650933&r1=650932&r2=650933&view=diff > ============================================================================== > --- stdcxx/trunk/src/num_put.cpp (original) > +++ stdcxx/trunk/src/num_put.cpp Wed Apr 23 09:25:44 2008 > @@ -196,6 +196,22 @@ > > #ifndef _RWSTD_NO_LONG_DOUBLE > > +# if _RWSTD_DBL_SIZE == _RWSTD_LDBL_SIZE > + > +inline bool __rw_isfinite (long double x) { return __rw_isfinite (double (x)); } > + > +inline bool __rw_signbit (long double x) { return __rw_signbit (double (x)); } > + > +inline bool __rw_isinf (long double x) { return __rw_isinf (double (x)); } > + > +inline bool __rw_isnan (long double x) { return __rw_isnan (double (x)); } > + > +inline bool __rw_isqnan (long double x) { return __rw_isqnan (double (x)); } > + > +inline bool __rw_issnan (long double x) { return __rw_issnan (double (x)); } > + > +# else // _RWSTD_DBL_SIZE != _RWSTD_LDBL_SIZE > + > inline bool __rw_isfinite (long double) { return true; } > > inline bool __rw_signbit (long double) { return false; } > @@ -207,6 +223,8 @@ > inline bool __rw_isqnan (long double) { return false; } > > inline bool __rw_issnan (long double) { return false; } > + > +# endif // _RWSTD_DBL_SIZE == _RWSTD_LDBL_SIZE > > #endif // _RWSTD_NO_LONG_DOUBLE > > >