From 34692ab826abc8f8faa61bdb2280b742424528f1 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 7 Dec 2013 15:14:29 -0500 Subject: Remove unnecessary Src/ folders --- .../Core/VideoBackends/Software/SWStatistics.cpp | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Source/Core/VideoBackends/Software/SWStatistics.cpp (limited to 'Source/Core/VideoBackends/Software/SWStatistics.cpp') diff --git a/Source/Core/VideoBackends/Software/SWStatistics.cpp b/Source/Core/VideoBackends/Software/SWStatistics.cpp new file mode 100644 index 0000000000..99b51b77a1 --- /dev/null +++ b/Source/Core/VideoBackends/Software/SWStatistics.cpp @@ -0,0 +1,25 @@ +// Copyright 2013 Dolphin Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#include "SWStatistics.h" + +SWStatistics swstats; + +template +void Xchg(T& a, T&b) +{ + T c = a; + a = b; + b = c; +} + +SWStatistics::SWStatistics() +{ + frameCount = 0; +} + +void SWStatistics::ResetFrame() +{ + memset(&thisFrame, 0, sizeof(ThisFrame)); +} -- cgit v1.2.3