| OLD | NEW |
| 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 SkNx_DEFINED | 8 #ifndef SkNx_DEFINED |
| 9 #define SkNx_DEFINED | 9 #define SkNx_DEFINED |
| 10 | 10 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 typedef SkNx<16, uint8_t> Sk16b; | 289 typedef SkNx<16, uint8_t> Sk16b; |
| 290 | 290 |
| 291 typedef SkNx<4, uint16_t> Sk4h; | 291 typedef SkNx<4, uint16_t> Sk4h; |
| 292 typedef SkNx<8, uint16_t> Sk8h; | 292 typedef SkNx<8, uint16_t> Sk8h; |
| 293 typedef SkNx<16, uint16_t> Sk16h; | 293 typedef SkNx<16, uint16_t> Sk16h; |
| 294 | 294 |
| 295 typedef SkNx<4, int> Sk4i; | 295 typedef SkNx<4, int> Sk4i; |
| 296 | 296 |
| 297 // Include platform specific specializations if available. | 297 // Include platform specific specializations if available. |
| 298 #if !defined(SKNX_NO_SIMD) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 | 298 #if !defined(SKNX_NO_SIMD) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
| 299 #include "../opts/SkNx_sse.h" | 299 #include "SkNx_sse.h" |
| 300 #elif !defined(SKNX_NO_SIMD) && defined(SK_ARM_HAS_NEON) | 300 #elif !defined(SKNX_NO_SIMD) && defined(SK_ARM_HAS_NEON) |
| 301 #include "../opts/SkNx_neon.h" | 301 #include "SkNx_neon.h" |
| 302 #endif | 302 #endif |
| 303 | 303 |
| 304 SI void Sk4f_ToBytes(uint8_t p[16], const Sk4f& a, const Sk4f& b, const Sk4f& c,
const Sk4f& d) { | 304 SI void Sk4f_ToBytes(uint8_t p[16], const Sk4f& a, const Sk4f& b, const Sk4f& c,
const Sk4f& d) { |
| 305 SkNx_cast<uint8_t>(SkNx_join(SkNx_join(a,b), SkNx_join(c,d))).store(p); | 305 SkNx_cast<uint8_t>(SkNx_join(SkNx_join(a,b), SkNx_join(c,d))).store(p); |
| 306 } | 306 } |
| 307 | 307 |
| 308 #undef SI | 308 #undef SI |
| 309 | 309 |
| 310 #endif//SkNx_DEFINED | 310 #endif//SkNx_DEFINED |
| OLD | NEW |