]> git.llucax.com Git - software/dgc/cdgc.git/commit
Use integer division to calculate the bit position
authorLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:29:59 +0000 (02:29 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:29:59 +0000 (02:29 -0300)
commit192f4bfd2ffdaa5e6283bc16e8452fc3c218fb8a
tree54156898a91254c4091f2a18b16e7a971be98a65
parent81dd58ff24106694b223252302afa0d8574414b2
Use integer division to calculate the bit position

Any decent compiler can optimize the division by a power of 2 to a shift.
rt/gc/cdgc/gc.d