Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2009 11:37:14 -0500 (CDT)
From:      Mark Tinguely <tinguely@casselton.net>
To:        imp@bsdimp.com, tinguely@casselton.net
Cc:        channa.kad@gmail.com, freebsd-arm@freebsd.org, venkiece2005@gmail.com
Subject:   Re: strncmp issue
Message-ID:  <200905051637.n45GbE7Q057469@casselton.net>
In-Reply-To: <20090505.081701.569396874.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>  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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905051637.n45GbE7Q057469>