¡@

Home 

c++ Programming Glossary: psource

How can adding code to a loop make it faster?

http://stackoverflow.com/questions/688325/how-can-adding-code-to-a-loop-make-it-faster

of float to int . for i 0 i iCount i iScaled ftol_ambient pSource PRECISION3 if iScaled 0 pDestination 0 else if iScaled PRECISION3.. else iSRGB FloatToSRGBTable3 iScaled pDestination iSRGB pSource pDestination Now my lookup table is finite and floats are infinite.. pointer casting. for i 0 i iCount i iScaled ftol_ambient pSource PRECISION3 if iScaled 0 pDestination 0 else if iScaled PRECISION3..