On Thu, 19 May 2005, Jerome Glisse wrote:
On 5/19/05, Vladimir Dergachev <[EMAIL PROTECTED]> wrote:On Thu, 19 May 2005, Jerome Glisse wrote:
Thus what we may do is use this table or use your swizzle function. Table lookup are faster but we doesn't have to translate code often, no ?
An intermediate approach would be to have an "if" function that is easier to read (and debug) but instead of using return values directly populate the table with the return values during startup and then use the table.
Did i said that i already done the table (as a human, at least everythings tends to make me think that i am a human :-)) Thus making a function to redo the table may be bit useless :)
The function approach might be useful if there are fewer test cases than entries in the table. In this case we win on code maintainability..
best
Vladimir Dergachev
Jerome Glisse
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel