Re: [AD] Faster hsv_to_rgb()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


AE wrote:
[snip]
One nice thing about 0.8 fixed-point numbers is that I can make a 64K
multiply lookup table for all values from 00-FF (they're one byte each).


Are you sure this would speed-up things? Cache misses are far far more expensive than the latency for multiplies.


Do you think Allegro has a need for seperate faster but less accurate
RGB<->HSV functions that use a different paramater-space, or should it be up
to users to add their own versions of these functions?

Perhaps best left as an add-on.


--
- Robert Jr Ohannessian
http://bob.allegronetwork.com/






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/