freebsd-dev/sys/libkern
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
..
arm
ia64
arc4random.c
ashldi3.c
ashrdi3.c
bcd.c
bcmp.c
bsearch.c
cmpdi2.c
crc32.c
divdi3.c
ffs.c
ffsl.c
fls.c
flsl.c
fnmatch.c
iconv_converter_if.m Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
iconv_ucs.c Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
iconv_xlat16.c Split tolower/toupper code from usual xlat16 kiconv table, and make it 2009-06-22 17:09:46 +00:00
iconv_xlat.c Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
iconv.c Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
index.c
inet_aton.c Move inet_aton() (specular to inet_ntoa(), already present in libkern) 2009-11-12 00:46:28 +00:00
inet_ntoa.c
inet_ntop.c Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
inet_pton.c Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
jenkins.h Fix typos - remove duplicate "is". 2011-02-23 09:22:33 +00:00
lshrdi3.c
mcount.c
memcchr.c Introducing memcchr(3). 2012-01-01 20:26:11 +00:00
memchr.c Provide memchr() in the libkern. 2010-06-02 17:27:23 +00:00
memcmp.c
memmove.c
memset.c
moddi3.c
qdivrem.c
qsort_r.c
qsort.c
quad.h
random.c
rindex.c
scanc.c
skpc.c
strcasecmp.c Start copyright notice with /*- 2010-04-07 16:29:10 +00:00
strcat.c
strcmp.c
strcpy.c
strcspn.c
strdup.c
strlcat.c
strlcpy.c
strlen.c
strncmp.c
strncpy.c
strnlen.c Add strnlen() to libkern. 2011-10-04 23:53:47 +00:00
strsep.c
strspn.c
strstr.c
strtol.c
strtoq.c
strtoul.c
strtouq.c
strvalid.c
ucmpdi2.c
udivdi3.c
umoddi3.c