C
C#•3y ago
hanu

How to find the implementation of Math. functions

I think i've heard mathematical functions of System.Math is implemented in external libraries written in a different language (maybe c/c++?) i'm curious if i can see those implementations and if can, i wanna know how.
7 Replies
Tvde1
Tvde1•3y ago
there is https://source.dot.net/ which contains a lot of the .NET source
canton7
canton7•3y ago
Start on https://source.dot.net. It those make internal calls into the runtime, search for those in https://github.com/dotnet/runtime
GitHub
GitHub - dotnet/runtime: .NET is a cross-platform runtime for cloud...
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. - GitHub - dotnet/runtime: .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
hanu
hanuOP•3y ago
thanks but could you let me know how to search for internal calls in the runtime?
hanu
hanuOP•3y ago
GitHub
runtime/sysmath.c at e6acc9724a6418e221f0ceb829f0bb7b0588a8c2 · dot...
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. - runtime/sysmath.c at e6acc9724a6418e221f0ceb829f0bb7b0588a8c2 · dotnet/runtime
hanu
hanuOP•3y ago
this is what i found but it has nothing about implementations
canton7
canton7•3y ago
I use the search bar, and a bit of common sense
hanu
hanuOP•3y ago
😭 i'm now afraid if they're written in assembly

Did you find this page helpful?