use optimized VP3 functions where appropriate