Search code examples
c++crashvisual-c++-6divide-by-zero

What is __alldiv?


I receive error reports with a Division by zero crash, and the crash occurs at a function called __alldiv. This function is not called anywhere in my code, I searched for it with Find in files.


Solution

  • __alldiv is the function from Visual Studio C runtime library which handles 64-bit integer division in 32-bit environment, it looks similar to this: http://www.jbox.dk/sanos/source/lib/lldiv.asm.html