3 ms·
James Gosling explains why fsin/fcos is often wrong on x86 and how Java deals with it
- downer 19y agoSince wrapping the C versions of sin() and cos() would be too much overhead using JNI, just redo the whole loop in C and call that. Alternatively, write new library functions that make the normal calls and then use Csin() and Ccos().