gen: fix signed division to negate the remainder
commit4c84d5c20893e5da657acae087956d20aef2c470
authorAli Gholami Rudi <ali@rudi.ir>
Thu, 17 Mar 2011 20:05:06 +0000 (17 23:35 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Thu, 17 Mar 2011 20:42:26 +0000 (18 00:12 +0330)
tree3fa42c40c3fb79b8d8074eb7b8f80d2427a7a6c2
parente6673a903614770d949e375284b6bdb5f43e3c41
gen: fix signed division to negate the remainder

Also optimized division for powers of two are only used when
the division is unsigned.
div.s
gen.c