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

Side by Side Diff: src/opts/SkNx_neon.h

Issue 1333983002: use new shuffle to speed up affine matrix mappts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: now 86 on NEON Created 5 years, 3 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/opts/SkMatrix_opts.h ('k') | no next file » | 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 SkNx_neon_DEFINED 8 #ifndef SkNx_neon_DEFINED
9 #define SkNx_neon_DEFINED 9 #define SkNx_neon_DEFINED
10 10
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return vbslq_u8(fVec, t.fVec, e.fVec); 389 return vbslq_u8(fVec, t.fVec, e.fVec);
390 } 390 }
391 391
392 uint8x16_t fVec; 392 uint8x16_t fVec;
393 }; 393 };
394 394
395 #undef SHIFT32 395 #undef SHIFT32
396 #undef SHIFT16 396 #undef SHIFT16
397 #undef SHIFT8 397 #undef SHIFT8
398 398
399 template <>
400 inline SkNf<4,float> SkNx_shuffle_impl<SkNf<4,float>, 1,0,3,2>(const SkNf<4,floa t>& src) {
401 return vrev64q_f32(src.fVec);
402 }
403
399 } // namespace 404 } // namespace
400 405
401 #endif//SkNx_neon_DEFINED 406 #endif//SkNx_neon_DEFINED
OLDNEW
« no previous file with comments | « src/opts/SkMatrix_opts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698