This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: faster memchr


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]