- # Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos and contributors.
- # All rights reserved.
- # Code licensed under the BSD License.
- # http://www.anki3d.org/LICENSE
- # keep methods in alphabetical order
- def is_power_of_two(number):
- return ((number & (number - 1)) == 0) and number != 0
|