don't do pow(int, 2.0) - (int * int) is all but guaranteed to be faster