From owner-cvs-all Fri Aug 16 5:19:26 2002 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 21C8F37B400; Fri, 16 Aug 2002 05:19:22 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D482243E70; Fri, 16 Aug 2002 05:19:20 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id MAA03688; Fri, 16 Aug 2002 12:19:08 GMT Date: Fri, 16 Aug 2002 22:26:11 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Alfred Perlstein Cc: David Greenman-Lawrence , David Greenman , , Subject: Re: cvs commit: src/sys/kern uipc_socket2.c In-Reply-To: <20020816052726.GN75574@elvis.mu.org> Message-ID: <20020816222229.S6756-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 15 Aug 2002, Alfred Perlstein wrote: > Any idea on how to setup warnings when some threshold of 64 bit > math is reached? I know this entirely arbitrary, but it would be > interesting and obviously benificial if we could easily find and > fix more instances of this in a somewhat automated fashion. Put them in the library functions (in udivdi3.c, etc.). I'm tempted to put overflow checks there too (and disable some optimizations so that the library functions get called in more cases). Here it helps that everything goes through relatively slow library calls. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message