stack: all functions should have always_inline attribute.