From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7553 invoked by alias); 16 Sep 2008 07:16:36 -0000 Received: (qmail 7105 invoked by uid 48); 16 Sep 2008 07:15:11 -0000 Date: Tue, 16 Sep 2008 07:16:00 -0000 Message-ID: <20080916071511.7104.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/37443] fast 64-bit divide by constant on 32-bit platform In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ajrobb at bigfoot dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg01862.txt.bz2 ------- Comment #2 from ajrobb at bigfoot dot com 2008-09-16 07:15 ------- I changed the summary as it is equally applicable to all 64-bit constant divides on 32-bit x86 that are already compiled as multiplies on 64-bit x64. It might be worth implementing as another API call, replacing the 64-bit divisor with a 64-bit multiplier and a shift count. -- ajrobb at bigfoot dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|fast 64-bit divide by |fast 64-bit divide by |constant 32-bit |constant on 32-bit platform http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37443