NetBSD/lib/libc/arch/m68k/string
jtc 530ba70aa3 New implementations of strcmp() and strncmp().
This code uses subb instead of cmpb to compare chars.  When they are
not equal, the function's return value is computed by sign extending
the difference.  The basic idea was contributed by Hiroshi Horitomo
<horimoto@cs-aoi.cs.sist.ac.jp> in PR #3223, but his implementation
used additional instructions to compute the return value.

Also, the series of insns used to compare one pair of characters has
been unrolled 4 times.  This helps the 680[23]0, where the cost of a
taken branch is significantly more than that of a not-taken branch.
1997-05-18 20:32:20 +00:00
..
Makefile.inc Assembly language implementation of strcat(). Derived by merging existing 1995-10-21 20:24:48 +00:00
bcmp.S Fix typo 1997-05-15 16:17:20 +00:00
bcopy.S Fixup reverse bcopy 1997-05-15 16:07:31 +00:00
bzero.S Change b{eq,ne,lt,le,gt,ge} -> j{eq,ne,lt,le,gt,ge}. 1997-05-13 19:27:21 +00:00
ffs.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
index.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
memcmp.S Change b{eq,ne,lt,le,gt,ge} -> j{eq,ne,lt,le,gt,ge}. 1997-05-13 19:27:21 +00:00
memcpy.S Fix typo. 1993-12-07 02:05:27 +00:00
memmove.S Fix typo. 1993-12-07 02:05:27 +00:00
memset.S oops, bzero -> memset 1997-05-14 18:18:44 +00:00
rindex.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
strcat.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
strchr.S No reason these can't share code... 1993-12-08 21:01:56 +00:00
strcmp.S New implementations of strcmp() and strncmp(). 1997-05-18 20:32:20 +00:00
strcpy.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
strlen.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00
strncmp.S New implementations of strcmp() and strncmp(). 1997-05-18 20:32:20 +00:00
strncpy.S Change b{eq,ne,lt,le,gt,ge} -> j{eq,ne,lt,le,gt,ge}. 1997-05-13 19:27:21 +00:00
strrchr.S No reason these can't share code... 1993-12-08 21:01:56 +00:00
swab.S #include <machine/asm.h> instead of "DEFS.h" 1997-01-04 03:26:18 +00:00