Template simplification of div and idiv.