Inlining some vector functions