From 22e1aa5bb4a159d6d66a321f978917614aa36331 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 8 Jul 2014 14:29:26 +0200 Subject: mark all local functions as static --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 5370c35750..8b42a20367 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -74,9 +74,6 @@ DataReadU32xNfunc DataReadU32xFuncs[16] = { DataReadU32xN<16> }; -extern u8* GetVideoBufferStartPtr(); -extern u8* GetVideoBufferEndPtr(); - static void Decode(); void InterpretDisplayList(u32 address, u32 size) @@ -107,7 +104,7 @@ void InterpretDisplayList(u32 address, u32 size) g_pVideoData = old_pVideoData; } -u32 FifoCommandRunnable(u32 &command_size) +static u32 FifoCommandRunnable(u32 &command_size) { u32 cycleTime = 0; u32 buffer_size = (u32)(GetVideoBufferEndPtr() - g_pVideoData); @@ -267,7 +264,7 @@ u32 FifoCommandRunnable(u32 &command_size) return cycleTime; } -u32 FifoCommandRunnable() +static u32 FifoCommandRunnable() { u32 command_size = 0; return FifoCommandRunnable(command_size); -- cgit v1.2.3 From 7e79806efcd5c5e41efea89fa385b480ac1882f5 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 8 Jul 2014 22:37:58 +0200 Subject: remove unused globals Also change globals into statics which are only used in one file --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 8b42a20367..4dc80f8c3e 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -34,8 +34,9 @@ u8* g_pVideoData = nullptr; bool g_bRecordFifoData = false; +typedef void (*DataReadU32xNfunc)(u32 *buf); #if _M_SSE >= 0x301 -DataReadU32xNfunc DataReadU32xFuncs_SSSE3[16] = { +static DataReadU32xNfunc DataReadU32xFuncs_SSSE3[16] = { DataReadU32xN_SSSE3<1>, DataReadU32xN_SSSE3<2>, DataReadU32xN_SSSE3<3>, @@ -55,7 +56,7 @@ DataReadU32xNfunc DataReadU32xFuncs_SSSE3[16] = { }; #endif -DataReadU32xNfunc DataReadU32xFuncs[16] = { +static DataReadU32xNfunc DataReadU32xFuncs[16] = { DataReadU32xN<1>, DataReadU32xN<2>, DataReadU32xN<3>, -- cgit v1.2.3