4 ms·
True story: Back when they were beta-ing a famous OS in its first 64-bit version, I found that dividing by zero actually crashed the calculator application. It
by 13of40 11y ago
True story: Back when they were beta-ing a famous OS in its first 64-bit version, I found that dividing by zero actually crashed the calculator application. It turned out that they were taking the exception id (as reported by the OS), multiplying it by the size of a pointer, and using it as an offset in a table to find the address of the exception handler routine. (i.e. JMP [id*size+table]) Lo and behold, on the 64-bit version of the architecture, the highest bit was set on the exception id....