From d1c55b1d09338bdc04adeb2761abe9e0f84f0d38 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 20 Sep 2013 23:19:21 -0700 Subject: [PATCH] Cleanup. --- src/bgfx_p.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 8ef4494f..7f0ca373 100755 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -253,11 +253,12 @@ namespace bgfx inline uint32_t strideAlign(uint32_t _offset, uint32_t _stride) { - const uint32_t mod = bx::uint32_mod(_offset, _stride); - const uint32_t add = bx::uint32_sub(_stride, mod); - const uint32_t mask = bx::uint32_cmpeq(mod, 0); - const uint32_t tmp = bx::uint32_selb(mask, 0, add); - const uint32_t result = bx::uint32_add(_offset, tmp); + using namespace bx; + const uint32_t mod = uint32_mod(_offset, _stride); + const uint32_t add = uint32_sub(_stride, mod); + const uint32_t mask = uint32_cmpeq(mod, 0); + const uint32_t tmp = uint32_selb(mask, 0, add); + const uint32_t result = uint32_add(_offset, tmp); return result; } @@ -306,7 +307,7 @@ namespace bgfx clear(); } - BX_NO_INLINE ~TextVideoMem() + ~TextVideoMem() { BX_FREE(g_allocator, m_mem); }