Improve performance of sinf and cosf