4 ms·
Maybe this is not a problem for calculating the size of a memory allocation, but that division operation is going to be several times slower than the multiplica
by ufo 5y ago
Maybe this is not a problem for calculating the size of a memory allocation, but that division operation is going to be several times slower than the multiplication it is guarding. Is there a faster way to check for overflow, perhaps using compiler builtins?