What is __alldiv?
__alldiv
is a function from the Visual Studio C runtime library that handles 64-bit integer division in a 32-bit environment, it looks something like this: http://www.jbox.dk/sanos/source/lib/lldiv.asm.html
source to share
__alldiv
- MSVC integer division function.
When you allocate integer division into your code, it doesn't always map one-to-one against an assembly instruction div
or idiv
. This is due to the differences between the specified language and the actual behavior of the div
and instructions idiv
.
Therefore, MSVC calls a function call to its own number division function.
source to share