Comparison of three modular reduction functions