x86: hpeldsp: better factorization

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>