Checking for NaN takes too much time. With some incompatibility to cmath atan2 for some NaN/Inf combinations the performance is better now.
This change should not have any impact in SDR related things. It is only for checking NaN/Inf values.