I am working on a platform, which doesn’t have the math library, but I need to use the logf function (natural log with floating point input). I tried to search the code for logf but in vain. Can somebody provide or give a link for logf function code.
Share
If you don’t have math library, you can go to libc to look for the code ->
http://sourceware.org/git/?p=glibc.git;a=blob;f=math/w_logf.c
And see how logf calls __ieee754_logf ->
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/ieee754/flt-32/e_logf.c
I hope it helps you.