diff options
Diffstat (limited to 'bench/InterpBench.cpp')
-rw-r--r-- | bench/InterpBench.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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; |