You are not logged in.
Pages: 1
I thought I would see how gcc calculates a simple function like sqrt(). In the cmath header I find
sqrt(float __x)
{ return __builtin_sqrtf(__x); }
This 'builtin' function doesn't seem to be in another header that I can find. So can someone tell me how this works? Is it delegated to the cpu or is that a bad guess?
Please don't post a sqrt code, thats not what I'm looking for.
Offline
I think that falls back to a compiler-builtin function. It's probably written in assembly or something of that sort.
Offline
Pages: 1