530ba70aa3
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. |
||
---|---|---|
.. | ||
gen | ||
net | ||
quad | ||
stdlib | ||
string | ||
sys | ||
DEFS.h | ||
Makefile.inc | ||
SYS.h |