From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19761 invoked by alias); 28 Jun 2005 13:52:44 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19619 invoked by uid 22791); 28 Jun 2005 13:52:22 -0000 Received: from mail-out2.fuse.net (HELO smtp2.fuse.net) (216.68.8.175) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 28 Jun 2005 13:52:22 +0000 Received: from gx4.fuse.net ([216.68.17.142]) by smtp2.fuse.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050628135220.BPXW10827.smtp2.fuse.net@gx4.fuse.net> for ; Tue, 28 Jun 2005 09:52:20 -0400 Received: from dellpi.pinski.fam ([216.68.17.142]) by gx4.fuse.net (InterMail vG.1.02.00.02 201-2136-104-102-20041210) with ESMTP id <20050628135220.TXSZ12227.gx4.fuse.net@dellpi.pinski.fam>; Tue, 28 Jun 2005 09:52:20 -0400 Received: from [10.0.0.80] (zhivago.i.pinski.fam [10.0.0.80]) by dellpi.pinski.fam (8.12.2/8.12.1) with ESMTP id j5SDqEQi017311; Tue, 28 Jun 2005 09:52:15 -0400 (EDT) In-Reply-To: <20050628134642.GA18415@iram.es> References: <27fdc0d8dc588cfdb3a14a153c5d037c@physics.uc.edu> <6d9fa260f233e519762c7d11276a35ad@physics.uc.edu> <3dbad9a6bd7eb1aea74ff2245eaa1b99@physics.uc.edu> <42C115D5.8070503@adacore.com> <42C13D4D.9040604@adacore.com> <20050628134642.GA18415@iram.es> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Robert Dewar , Gabriel Dos Reis , gcc mailing list From: Andrew Pinski Subject: Re: signed is undefined and has been since 1992 (in GCC) Date: Tue, 28 Jun 2005 13:52:00 -0000 To: Gabriel Paubert X-SW-Source: 2005-06/txt/msg01111.txt.bz2 On Jun 28, 2005, at 9:46 AM, Gabriel Paubert wrote: > Now in practice what would be the cost of checking that the divisor > is -1 and take an alternate path that computes the correct > results (in modulo arithmetic) for this case ? Small compared the division it self but if it is in an inner loop, it adds up and then becomes a performance regression which nobody wants. -- Pinski