From owner-freebsd-hackers Thu Feb 18 12:20:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 1F97611817 for ; Thu, 18 Feb 1999 12:20:22 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id VAA04531; Thu, 18 Feb 1999 21:20:21 +0100 (CET) (envelope-from des) To: hackers@freebsd.org Subject: [Alfred Perlstein ] Re: vm_page_zero_fill From: Dag-Erling Smorgrav Date: 18 Feb 1999 21:20:19 +0100 Message-ID: Lines: 53 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ------- Start of forwarded message ------- Date: Thu, 18 Feb 1999 15:18:54 -0500 (EST) From: Alfred Perlstein To: Dag-Erling Smorgrav Subject: Re: vm_page_zero_fill Message-ID: Last night i was kinda bored so i started looking for things to optimize in freebsd, i noticed that the function src/sys/libkern/bcmp.c looked not optimal. After playing with "gcc -O -S bcmp.c" on several platforms, i386, sparc32, alpha. It seems to me that the function ought to be replaced with this: #include /* * bcmp -- vax cmpc3 instruction */ int bcmp(b1, b2, length) const void *b1, *b2; register size_t length; { register size_t i; for (i=0 ; i