Artemis.Modules.Effects.AudioVisualizer.Utilities.SampleAggregator.IsPowerOfTwo C# (CSharp) 메소드

IsPowerOfTwo() 개인적인 메소드

private IsPowerOfTwo ( int x ) : bool
x int
리턴 bool
        private bool IsPowerOfTwo(int x)
        {
            return (x & (x - 1)) == 0;
        }