View Single Post
Old 2009-07-11, 00:50   #2
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

3,449 Posts
Default Integer divide

I saw on one of the nVidia forums an integer divide uses 140 clock cycles. It is better to use bit-wise shifts whenever possible. (Some compiler optimizations may do that for you.)
RichD is offline   Reply With Quote