This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: faster memchr
- From: duane ellis <duane-newlib at duaneellis dot com>
- To: Eric Blake <ebb9 at byu dot net>
- Cc: newlib at sources dot redhat dot com
- Date: Thu, 22 May 2008 21:35:34 -0400
- Subject: Re: faster memchr
- References: <loom.20080522T224120-760@post.gmane.org>
- Reply-to: duane-newlib at duaneellis dot com
Eric Blake wrote:
Yet another speedup.
(SNIP)
And the test program:
(SNIP)
Q: Why not put these 'test programs' as #ifdef TEST_PROGRAM inside the C
source code to that function?
Otherwise, they will be lost for ever in the email black hole.
The test program could for example #define somefunction ->
TEST_C_VERSION_somefunction
And maybe even TEST_ASM_VERSION_somefunction...
I would hate to see this sort of stuff lost.
Also - the 'test driver' you put in for some target FOO... is just as
good for some other target BAR..
This would also show the due diligence at some point in the future...
-Duane.