eal: fix check for power of 2 in 0 case