Skip to content

Current Intrinsic procedure #63133

Answered by EgorBo
deeprobin asked this question in Q&A
Dec 25, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

As far as I remember it's done just to handle Reflection, so if you (for some reason) decide to call e.g. BitScanForward via reflection - JIT will expand the inner call.

Also it helps with cases where e.g. some SSE intrinsic only works with constant input but user passes a variable - so it will expand that variable into a switch inside the API itself.

Recursion is never expected to happen.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by deeprobin
Comment options

You must be logged in to vote
1 reply
@tannergooding
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants