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

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

Issue 1004693002: Add #include first in Sk4x_* files (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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 | « src/core/Sk4x_neon.h ('k') | src/core/Sk4x_sse.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 // It is important _not_ to put header guards here. 1 // It is important _not_ to put header guards here.
2 // This file will be intentionally included three times. 2 // This file will be intentionally included three times.
3 3
4 #include "SkTypes.h" // Keep this before any #ifdef for skbug.com/3362
5
4 #if defined(SK4X_PREAMBLE) 6 #if defined(SK4X_PREAMBLE)
5 #include "SkFloatingPoint.h" 7 #include "SkFloatingPoint.h"
6 #include <math.h> 8 #include <math.h>
7 9
8 #elif defined(SK4X_PRIVATE) 10 #elif defined(SK4X_PRIVATE)
9 typedef T Type; 11 typedef T Type;
10 typedef T Vector[4]; 12 typedef T Vector[4];
11 13
12 Vector fVec; 14 Vector fVec;
13 15
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 k < 4 ? x.fVec[k] : y.fVec[k-4]); 111 k < 4 ? x.fVec[k] : y.fVec[k-4]);
110 } 112 }
111 113
112 M(Sk4x<T>) zwxy() const { return Shuffle<2,3,0,1>(*t his, *this); } 114 M(Sk4x<T>) zwxy() const { return Shuffle<2,3,0,1>(*t his, *this); }
113 M(Sk4x<T>) XYAB(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<0,1,4,5>( x yzw, abcd); } 115 M(Sk4x<T>) XYAB(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<0,1,4,5>( x yzw, abcd); }
114 M(Sk4x<T>) ZWCD(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<2,3,6,7>( x yzw, abcd); } 116 M(Sk4x<T>) ZWCD(const Sk4x& xyzw, const Sk4x& abcd) { return Shuffle<2,3,6,7>( x yzw, abcd); }
115 117
116 #undef M 118 #undef M
117 119
118 #endif 120 #endif
OLDNEW
« no previous file with comments | « src/core/Sk4x_neon.h ('k') | src/core/Sk4x_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698