x86: dsputil hpeldsp: Move shared template functions into separate object