isPositive - return true if x > 0, otherwise false
isPositive
true
x > 0
false
Example: isPositive(-1)
isPositive(-1)
Legal ops:
int isPositive(int x) { return (!(x & 0x80000000) & !!x); }