lattice_points_fixed: nano-optimization