IsPowerOfTwo

bool IsPowerOfTwo( unsigned int p_nX )
{

    if( p_nX < 2 ) return false;

    if( p_nX & (p_nX-1) ) return false;

    return true;

}

http://www.codeproject.com/Articles/6855/FFT-of-waveIn-audio-signals

posted @ 2013-01-09 14:53  水上云天  阅读(187)  评论(0编辑  收藏  举报