diff options
author | mtklein <mtklein@chromium.org> | 2015-12-15 07:38:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-15 07:38:54 -0800 |
commit | fce612ac32a224d874acfce2b1ccf8db1a553307 (patch) | |
tree | 97ac8e65d424847effdb4f05433800351439f2d5 /src/core | |
parent | 6822c207057fd2bc6154afc98712e0fa09339b51 (diff) |
Specialize Sk2d for SSE2
Given the autovectorization we've seen, I wouldn't expect big speedups
from this, but it does give us a point of control over what's going on.
BUG=skia:
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/1526923003
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkNx.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/SkNx.h b/src/core/SkNx.h index a28898b258..684a31dcef 100644 --- a/src/core/SkNx.h +++ b/src/core/SkNx.h @@ -203,11 +203,16 @@ SkNx<N,D> SkNx_cast(const SkNx<N,S>& src) { } // namespace typedef SkNx<2, float> Sk2f; -typedef SkNx<2, float> Sk2s; typedef SkNx<4, float> Sk4f; -typedef SkNx<4, float> Sk4s; typedef SkNx<8, float> Sk8f; -typedef SkNx<8, float> Sk8s; + +typedef SkNx<2, double> Sk2d; +typedef SkNx<4, double> Sk4d; +typedef SkNx<8, double> Sk8d; + +typedef SkNx<2, SkScalar> Sk2s; +typedef SkNx<4, SkScalar> Sk4s; +typedef SkNx<8, SkScalar> Sk8s; typedef SkNx< 4, uint16_t> Sk4h; typedef SkNx< 8, uint16_t> Sk8h; |