3 ms·
Easily handled, in translation. The compiler understands it is a pointer, and that you are checking if it is equal to nullptr, and generates the right code. A
by ncmncm 4y ago
Easily handled, in translation.
The compiler understands it is a pointer, and that you are checking if it is equal to nullptr, and generates the right code.
Another smart adjustment when making a new ABI is to make true represented as -1. This matches how AVX* and SIMD instructions do things. (The RISC-V people missed this opportunity, among others.) Of course when converting to int, it gets turned into 1, but compilers have absolutely no difficulty with that.