OLD | NEW |
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 // Useful reading: | 4 // Useful reading: |
5 // https://software.intel.com/sites/landingpage/IntrinsicsGuide/ | 5 // https://software.intel.com/sites/landingpage/IntrinsicsGuide/ |
6 | 6 |
7 #include "SkTypes.h" // Keep this before any #ifdef for skbug.com/3362 | 7 #include "SkTypes.h" // Keep this before any #ifdef for skbug.com/3362 |
8 | 8 |
9 #if defined(SK4X_PREAMBLE) | 9 #if defined(SK4X_PREAMBLE) |
10 // Code in this file may assume SSE and SSE2. | 10 // Code in this file may assume SSE and SSE2. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 M(Sk4i) Max(const Sk4i& a, const Sk4i& b) { | 176 M(Sk4i) Max(const Sk4i& a, const Sk4i& b) { |
177 Sk4i less = a.lessThan(b); | 177 Sk4i less = a.lessThan(b); |
178 return b.bitAnd(less).bitOr(a.andNot(less)); | 178 return b.bitAnd(less).bitOr(a.andNot(less)); |
179 } | 179 } |
180 #endif | 180 #endif |
181 | 181 |
182 #undef M | 182 #undef M |
183 | 183 |
184 #endif//Method definitions. | 184 #endif//Method definitions. |
OLD | NEW |