math: nextafter and nexttoward cleanup