Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.