strncmp issue

Mark Tinguely tinguely at casselton.net
Tue May 5 16:37:20 UTC 2009


>  Is the hand rolled assembler still better than what gcc can produce?
>
>  Warner

Assuming my additional conditional branch, we can save at least an add and
a branch in the comparison loop with the hard rolled assembler over the
"cc -O2 head/lib/libc/string/strncmp.c" code.

If the conditional branch can be deleted, then even better.

--Mark.


More information about the freebsd-arm mailing list