Performance, change some values from signed to unsigned int.
According to "Optimizing CPP" written by Agner Fog, this is a speed improvement. According to "top", it is