4 ms·
Note that that solution won't work with signed values, and compilers will happily optimize out the check in that case.
by TheLoneWolfling 12y ago
Note that that solution won't work with signed values, and compilers will happily optimize out the check in that case.