How to get the code of translatef()?

I need to know how can I get the source code of gl.h, e.g the function codes of glTranslatef(), glRotatef(), cos I try to convert them from logarithmic number system, as a result to compare it from standard floating point arithmetic. If I write them myself, it couldn’t match other glut functions which are given.

If you want to see how it exactly works in your implementation you need the original source which is not available. But if you just want to have a look at how it works you can download the mesa source code, which is free: