2 ms·
> as a tiny number of instructions specifically 1
by adgjlsfhk1 2y ago
> as a tiny number of instructions
specifically 1
- gary_0 2y agoFor sqrt() on x86_64 and gcc/clang, yes. But functions like fmod() are generally more instructions. And as for trig functions like sin(), AFAIK most compilers will always use a function call, because the x86 trig instructions don't have good speed/accuracy compared to a modern stdlib. And YMMV when it comes to other arch's and compilers (and -fmath settings).