From: Leandro Lucarella Date: Sun, 29 Aug 2010 05:29:59 +0000 (-0300) Subject: Use integer division to calculate the bit position X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/commitdiff_plain/192f4bfd2ffdaa5e6283bc16e8452fc3c218fb8a?ds=sidebyside;hp=192f4bfd2ffdaa5e6283bc16e8452fc3c218fb8a Use integer division to calculate the bit position Any decent compiler can optimize the division by a power of 2 to a shift. ---