From 35d742677a59b4340b24f703bad666f3700b14b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Feb 2016 21:21:36 +0300 Subject: Use inline attribute in some critial performance functions. --- src/render/graphicsdef.hpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/render/graphicsdef.hpp') diff --git a/src/render/graphicsdef.hpp b/src/render/graphicsdef.hpp index 0b077d373..e7b775ff0 100644 --- a/src/render/graphicsdef.hpp +++ b/src/render/graphicsdef.hpp @@ -52,7 +52,7 @@ public: void inline drawPatternInline(const Image *restrict const image, const int x, const int y, - const int w, const int h) restrict2; + const int w, const int h) restrict2 A_INLINE; void drawRescaledPattern(const Image *restrict const image, const int x, const int y, @@ -128,16 +128,21 @@ private: void inline calcImageRect(ImageVertexes *restrict const vert, int x, int y, int w, int h, - const ImageRect &restrict imgRect) restrict2; + const ImageRect &restrict imgRect) + restrict2 A_INLINE; void inline calcPatternInline(ImageVertexes *restrict const vert, const Image *restrict const image, - const int x, const int y, - const int w, const int h) const restrict2; + const int x, + const int y, + const int w, + const int h) const restrict2 A_INLINE; void inline calcTileVertexesInline(ImageVertexes *restrict const vert, const Image *restrict const image, - int x, int y) const restrict2; + int x, + int y) const restrict2 A_INLINE; void inline drawImageInline(const Image *restrict const image, - int dstX, int dstY) restrict2; + int dstX, + int dstY) restrict2 A_INLINE; -- cgit v1.2.3-60-g2f50