PI is defined in physical_constants, and the PI_MOD(x) macro has been superseded by the circular_modulus_rad proposed in #479. Maybe 0f127ff can be cherry-picked so as not to cause merge conflicts.