Avoid "function with no prototype" warnings.
Fix an "implicit narrowing" warning.
Fix "always_inline function might not be inlinable" warning.

(Some compiler configurations don't like the "always_inline" flag
without an accompanying inline.)
combined inline with OPTIONAL_INLINE