in comment should be an optimized function of qpel v for 10 bits