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

2·7·13·19 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