From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19508 invoked by alias); 26 Feb 2002 16:38:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19362 invoked from network); 26 Feb 2002 16:38:01 -0000 Received: from unknown (HELO ll.mit.edu) (129.55.12.40) by sources.redhat.com with SMTP; 26 Feb 2002 16:38:01 -0000 Received: (from smtp@localhost) by ll.mit.edu (8.11.3/8.8.8) id g1QGbiP10435; Tue, 26 Feb 2002 11:37:44 -0500 (EST) Received: from UNKNOWN( ), claiming to be "lager" via SMTP by llmail, id smtpdAAAbXaWes; Tue Feb 26 11:37:34 2002 Date: Tue, 26 Feb 2002 08:42:00 -0000 From: Stephen Pisuk X-X-Sender: smp@lager To: John Love-Jensen cc: gcc-help@gcc.gnu.org Subject: Re: Float to Int Conversions In-Reply-To: <3C7BB6ED.11E6155E@adobe.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00274.txt.bz2 No I had not, but it didn't help If the result of the conversion is an INT the conversion saturates at 0x80000000 however if the result is an UNSIGNED INT the conversion is correct; > Hi Stephen, > > Have you set IEEE 754 compliance on both compilers? > > GCC -ffloat-store > > I don't know what MSVC uses. > > --Eljay > > __________________________________________________ Stephen Pisuk MIT Lincoln Laboratory, Room C-472 244 Wood St., Lexington, MA 02420-9108 voice: (781)-981-3682 fax: (781)-981-4583 e-mail: smp@ll.mit.edu