   The math.c file ?
  Hi guys,What does the math.c file look like ? Is it in Assembly language ? Is it stored in a DLL ? I can''t find it.I''m using Visual C++ 6.0 with Service Pack 5.I''m interested in seeing what functions like ln() and pow() look like.Thanks. 
quote:Original post by Endemoniada  Hi guys,What does the math.c file look like ? Is it in Assembly language ? Is it stored in a DLL ? I can''t find it.I''m using Visual C++ 6.0 with Service Pack 5.I''m interested in seeing what functions like ln() and pow() look like.Thanks. Hi,it is stored in a .lib (library file) it should include optimized code very likely written in assembly.ln and pow are part of the stadard ''c'' library.;  You could get hold of a disassembler and take a look at the code inside the lib file. Could be very educational. ;  Another thought, a version of math.c should be available with open source C distributions I guess e.g. GCC ;  The implementations of most of the standard math library functions aren''t too interesting in MSVC 6; essentially, they''re just calls to the floating point co-processor. For example, log() is just a fldln2 instruction followed by a fld instruction and a fyl2x. sin() is just a fld followed by a fsin.  