What is __alldiv?
I am getting reports of zero-crash division errors and the crash occurs on the __alldiv function. This function is not called anywhere in my code, I searched for it using a file search.
__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
__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.