fixed  distance-square computation