math: introduce handle_mod_rl()