From owner-cvs-all@FreeBSD.ORG Sat Nov 27 20:59:49 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86BAD16A4CE; Sat, 27 Nov 2004 20:59:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E30643D2F; Sat, 27 Nov 2004 20:59:49 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iARKxnkt041504; Sat, 27 Nov 2004 20:59:49 GMT (envelope-from peadar@repoman.freebsd.org) Received: (from peadar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iARKxnwJ041503; Sat, 27 Nov 2004 20:59:49 GMT (envelope-from peadar) Message-Id: <200411272059.iARKxnwJ041503@repoman.freebsd.org> From: Peter Edwards Date: Sat, 27 Nov 2004 20:59:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/alpha/gen divrem.m4 src/sys/alpha/alpha divrem.m4 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2004 20:59:49 -0000 peadar 2004-11-27 20:59:49 UTC FreeBSD src repository Modified files: lib/libc/alpha/gen divrem.m4 sys/alpha/alpha divrem.m4 Log: When required to negate the absoulte result of a division/remainder operation (by subtracting the absolute result from 0), don't test for overflow. This avoids an arithmetic exception when dividing LONG_MIN by 1: This is the only case that causes overflow, and the resulting value is correct under 2's compliment arithmetic. PR: 72024 Approved by: dwmalone@ Obtained from: NetBSD MFC after: 4 days Revision Changes Path 1.4 +1 -1 src/lib/libc/alpha/gen/divrem.m4 1.4 +1 -1 src/sys/alpha/alpha/divrem.m4