NetBSD/lib/libc/arch/m68k
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
..
gen Use <machine/asm.h> 1997-04-25 00:58:41 +00:00
net Use <machine/asm.h> 1997-04-25 00:58:41 +00:00
quad m68k assembly versions of 64 bit shift functions 1996-05-31 02:05:33 +00:00
stdlib Use <machine/asm.h> 1997-04-25 00:58:41 +00:00
string New implementations of strcmp() and strncmp(). 1997-05-18 20:32:20 +00:00
sys PROF -> GPROF 1996-11-30 02:31:49 +00:00
DEFS.h New-style RCS ids. 1995-12-13 22:21:23 +00:00
Makefile.inc Added ashldi3.S, ashrdi3.S, and lshrdi3.S to KMSRCS 1996-06-01 01:08:02 +00:00
SYS.h Consistency: distinguish between PSEUDO() and PSEUDO_NOERROR(). 1997-05-02 18:15:15 +00:00