From owner-freebsd-commit Tue Jul 11 11:50:54 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA00806 for commit-outgoing; Tue, 11 Jul 1995 11:50:54 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA00792 for cvs-sys-outgoing; Tue, 11 Jul 1995 11:50:52 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA00782 ; Tue, 11 Jul 1995 11:50:48 -0700 Date: Tue, 11 Jul 1995 11:50:48 -0700 From: Bruce Evans Message-Id: <199507111850.LAA00782@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/libkern scanc.c Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/11 11:50:48 Modified: sys/libkern scanc.c Log: Rearrange the inner loop of scanc() to get better code on i*86's (on an i486, 10 cycles (+ cache misses) instead of 15). The change should be a no-op if the compiler is any good. The best possible i*86 code for the same algorithm is only 1 more cycle faster on i486's so I don't want to bother implementing an assembler version. scanc() is a bottleneck for OPOST processing. It is naturally about 4 times as slow as bcopy() on 32-bit systems.