Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: src/core/Sk2x.h

Issue 1018423003: Sk2x for NEON (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: unused header Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/opts/Sk2x_neon.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef Sk2x_DEFINED 8 #ifndef Sk2x_DEFINED
9 #define Sk2x_DEFINED 9 #define Sk2x_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 12
13 #define SK2X_PREAMBLE 1 13 #define SK2X_PREAMBLE 1
14 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 14 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
15 #include "../opts/Sk2x_sse.h" 15 #include "../opts/Sk2x_sse.h"
16 #elif defined(__ARM_NEON__)
17 #include "../opts/Sk2x_neon.h"
16 #else 18 #else
17 #include "../opts/Sk2x_none.h" 19 #include "../opts/Sk2x_none.h"
18 #endif 20 #endif
19 #undef SK2X_PREAMBLE 21 #undef SK2X_PREAMBLE
20 22
21 template <typename T> class Sk2x; 23 template <typename T> class Sk2x;
22 typedef Sk2x<float> Sk2f; 24 typedef Sk2x<float> Sk2f;
23 typedef Sk2x<double> Sk2d; 25 typedef Sk2x<double> Sk2d;
24 26
25 #if SK_SCALAR_IS_FLOAT 27 #if SK_SCALAR_IS_FLOAT
(...skipping 24 matching lines...) Expand all
50 Sk2x rsqrt() const; // Approximate 1/this->sqrt(). 52 Sk2x rsqrt() const; // Approximate 1/this->sqrt().
51 Sk2x sqrt() const; // this->multiply(this->rsqrt()) may be faster, but le ss precise. 53 Sk2x sqrt() const; // this->multiply(this->rsqrt()) may be faster, but le ss precise.
52 54
53 static Sk2x Min(const Sk2x&, const Sk2x&); 55 static Sk2x Min(const Sk2x&, const Sk2x&);
54 static Sk2x Max(const Sk2x&, const Sk2x&); 56 static Sk2x Max(const Sk2x&, const Sk2x&);
55 57
56 private: 58 private:
57 #define SK2X_PRIVATE 1 59 #define SK2X_PRIVATE 1
58 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 60 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
59 #include "../opts/Sk2x_sse.h" 61 #include "../opts/Sk2x_sse.h"
62 #elif defined(__ARM_NEON__)
63 #include "../opts/Sk2x_neon.h"
60 #else 64 #else
61 #include "../opts/Sk2x_none.h" 65 #include "../opts/Sk2x_none.h"
62 #endif 66 #endif
63 #undef SK2X_PRIVATE 67 #undef SK2X_PRIVATE
64 }; 68 };
65 69
66 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 70 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
67 #include "../opts/Sk2x_sse.h" 71 #include "../opts/Sk2x_sse.h"
72 #elif defined(__ARM_NEON__)
73 #include "../opts/Sk2x_neon.h"
68 #else 74 #else
69 #include "../opts/Sk2x_none.h" 75 #include "../opts/Sk2x_none.h"
70 #endif 76 #endif
71 77
72 #endif//Sk2x_DEFINED 78 #endif//Sk2x_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/opts/Sk2x_neon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698