freebsd-skq/share
Ed Schouten de85bfc508 Introducing memcchr(3).
It seems two of the file system drivers we have in the tree, namely ufs
and ext3, use a function called `skpc()'. The meaning of this function
does not seem to be documented in FreeBSD, but it turns out one needs to
be a VAX programmer to understand what it does.

SPKC is an instruction on the VAX that does the opposite of memchr(). It
searches for the non-equal character. Add a new function called
memcchr() to the tree that has the following advantages over skpc():

- It has a name that makes more sense than skpc(). Just like strcspn()
  matches the complement of strspn(), memcchr() is the complement of
  memchr().

- It is faster than skpc(). Similar to our strlen() in libc, it compares
  entire words, instead of single bytes. It seems that for this routine
  this yields a sixfold performance increase on amd64.

- It has a man page.
2012-01-01 20:26:11 +00:00
..
colldef
dict
doc Spelling fixes for share/ 2011-12-30 11:11:54 +00:00
examples
i18n
info
man Introducing memcchr(3). 2012-01-01 20:26:11 +00:00
me
misc I'm not yet an alumni, add myself in the right section 2011-12-29 08:13:11 +00:00
mk Disable another clang warning (-Wempty-body) when WARNS <= 2. 2011-12-18 00:34:42 +00:00
mklocale
monetdef
msgdef
numericdef
security
sendmail
skel
snmp
syscons
tabset
termcap Spelling fixes for share/ 2011-12-30 11:11:54 +00:00
timedef
zoneinfo
Makefile
Makefile.inc