Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 1995 11:50:48 -0700
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/libkern scanc.c
Message-ID:  <199507111850.LAA00782@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507111850.LAA00782>