R600/SI: implement range reduction for sin/cos