The function returns 1 if the input is a non-power of 2 integer, and -1 otherwise.

