Math library...  
Author Message
FloDEM





PostPosted: Common Language Runtime, Math library... Top

Hi,

I'm looking for the codes used to implement the exp function in C# and C++ library. Where could I find the bit of codes. I'm looking for that because I need to optimize these function for an application.

Thank you for your help.

Best regards,

Florian DEMOIZET



.NET Development8  
 
 
nobugz





PostPosted: Common Language Runtime, Math library... Top

The source code for exp() is not published. Closest thing you got is tran.lib in the VC\crt\src\intel\dll_lib folder. Math.Exp() just uses the CRT version of exp(). Optimizing the performance of exp() would be a long shot, this kind of library code is heavily optimized. Noteable is that it uses SSE2 instructions when the CPU supports them.