From fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:09:54 +0000 Subject: Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) This CL is part I of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6485054 git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/InterpBench.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bench/InterpBench.cpp') diff --git a/bench/InterpBench.cpp b/bench/InterpBench.cpp index 85fada3f0e..f8f463b1b5 100644 --- a/bench/InterpBench.cpp +++ b/bench/InterpBench.cpp @@ -45,7 +45,7 @@ private: class Fixed16D16Interp : public InterpBench { public: Fixed16D16Interp(void* param) : INHERITED(param, "16.16") {} - + protected: virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { SkFixed curr = SkFloatToFixed(fx); @@ -64,27 +64,27 @@ private: class Fixed32D32Interp : public InterpBench { public: Fixed32D32Interp(void* param) : INHERITED(param, "32.32") {} - + protected: virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { int64_t curr = (int64_t)(fx * 65536 * 655536); int64_t step = (int64_t)(dx * 65536 * 655536); SkFixed tmp; for (int i = 0; i < count; i += 4) { - tmp = (SkFixed)(curr >> 16); - dst[i + 0] = TILE(tmp, count); + tmp = (SkFixed)(curr >> 16); + dst[i + 0] = TILE(tmp, count); curr += step; - tmp = (SkFixed)(curr >> 16); - dst[i + 1] = TILE(tmp, count); + tmp = (SkFixed)(curr >> 16); + dst[i + 1] = TILE(tmp, count); curr += step; - tmp = (SkFixed)(curr >> 16); - dst[i + 2] = TILE(tmp, count); + tmp = (SkFixed)(curr >> 16); + dst[i + 2] = TILE(tmp, count); curr += step; - tmp = (SkFixed)(curr >> 16); - dst[i + 3] = TILE(tmp, count); + tmp = (SkFixed)(curr >> 16); + dst[i + 3] = TILE(tmp, count); curr += step; } } @@ -95,7 +95,7 @@ private: class Fixed16D48Interp : public InterpBench { public: Fixed16D48Interp(void* param) : INHERITED(param, "16.48") {} - + protected: virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); @@ -115,7 +115,7 @@ private: class FloatInterp : public InterpBench { public: FloatInterp(void* param) : INHERITED(param, "float") {} - + protected: virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { SkFixed tmp; @@ -133,7 +133,7 @@ private: class DoubleInterp : public InterpBench { public: DoubleInterp(void* param) : INHERITED(param, "double") {} - + protected: virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { double ffx = fx; -- cgit v1.2.3