Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD master CVS tree commits
kleink
Sun May 18 13:31:23 PDT 1997
Update of /cvsroot/src/lib
In directory netbsd1:/var/slash-tmp/cvs-serv12561
Modified Files:
Makefile
Log Message:
Add libposix.
jtc
Sun May 18 13:32:22 PDT 1997
Update of /cvsroot/src/lib/libc/arch/m68k/string
In directory netbsd1:/var/slash-tmp/cvs-serv12150
Modified Files:
strcmp.S strncmp.S
Log Message:
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@localhost> 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.
Home |
Main Index |
Thread Index |
Old Index