if ( int(log($v1)/log(2)) == int(log($v2)/log(2)) ) { #match }