|
@ -176,7 +176,8 @@ int isTmax(int x) { |
|
|
int xplusone = x + 1; |
|
|
int xplusone = x + 1; |
|
|
int all1 = xplusone ^ x; |
|
|
int all1 = xplusone ^ x; |
|
|
int allzero = all1 + 1; |
|
|
int allzero = all1 + 1; |
|
|
return !allzero; |
|
|
|
|
|
|
|
|
int notnegative1 = !(x ^ (-1)); |
|
|
|
|
|
return !(allzero | notnegative1); |
|
|
} |
|
|
} |
|
|
/* |
|
|
/* |
|
|
* allOddBits - return 1 if all odd-numbered bits in word set to 1 |
|
|
* allOddBits - return 1 if all odd-numbered bits in word set to 1 |
|
|