I'm a developer at C++ Shanghai team. I'm interested in everything related to C++
Browse by Tags
All Tags »
VC »
Optimization (RSS)
-
This is an intellectual exercise: when shifts a 32-bit unsigned integer in C++, how to detect whether the calculation overflows efficiently? Here is the function prototype. shl_overflow will return true if v << cl overflows (cl is between 0 and Read More...
|