Somewhat simpler versions of the last two are ~0>>1 and -(~0>>1)-1.
In reply to Re: How to portably determine integer limits? (simpler)
by tye
in thread How to portably determine integer limits?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |