I see. Well, I'm no expert on this, but I can point you to a couple of open-source implementations of libc. Here you can find the math functions not specific to a platform (if I understand correctly):
http://sourceware.org/git/?p=glibc.git;a=tree;f=math;
http://git.uclibc.org/uClibc/tree/libm
The platform-dependant implementations of log and exp can be found in the sysdeps directory. Look for the fpu directory under each of the platform directories.
http://sourceware.org/git/?p=glibc.git;a=tree;f=sysdeps;
You can also get a local copy of the whole library for easier access:
http://ftp.gnu.org/gnu/glibc/
I hope this helps.