changed always_inline attribute to "static inline" since CV_INLINE is used to avoid symbol collision on external linkage, not forced inlining