This uses the implementation of sinf() in sysdeps/x86_64/fpu/s_sinf.S as inspiration. (cherry picked from commit aa95fc13)