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
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.
thanks but could you let me know how to search for internal calls in the runtime?
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
this is what i found but it has nothing about implementations
I use the search bar, and a bit of common sense
ðŸ˜
i'm now afraid if they're written in assembly