I 'm looking for it for a reason.
Basically I'm trying to implement a program in C that is meant to run on an embedded device with an MSP430 micro-controller (10KB RAM, 48KB Flash). I don't really want to include the whole cmath library -- I only need the sqrt. Since resources are scarce...
I'm looking for any OS implementation, pref Unix or Linux but anything will do.
Googling sqrt.c gave me a few versions of sqrt that various people wrote. Most of them don't even compile using gcc.
But I'm looking for the implementation the standard library uses. Or something very close to...
Hi,
Probably a silly question, but where do i find function implementations (for stdlib functions). To be precise I'm looking for the implementation of sqrt. I had a look in /usr/include and found math.h but it does not contain an implementation.
The cmath library contains the below;
sqrt(...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.