Slightly optimize the software rasterizer.

This is based on some comments to the article in http://devmaster.net/posts/6145/advanced-rasterization, which was the basis for Dolphin's SW rasterizer.

The performance increase should be negligible, though.