faster memchr

duane ellis duane-newlib@duaneellis.com
Mon May 26 23:32:00 GMT 2008


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.




More information about the Newlib mailing list