add SkNx::abs(), for now only implemented for Sk4f
authormtklein <mtklein@chromium.org>
Fri, 15 Jan 2016 20:16:40 +0000 (12:16 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 Jan 2016 20:16:40 +0000 (12:16 -0800)
commitc33065a93ad0874672c4c66b9711aa0b3ef7b7e7
tree835aab7ff1fd1c67dbe2d12c6914c37ce69846ad
parent98eb3d3776ba64099a19c92ab7aac4f2e323d857
add SkNx::abs(), for now only implemented for Sk4f

There's no reason we couldn't implement this for all ints and floats;
just don't want to land unused code.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1590843003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review URL: https://codereview.chromium.org/1590843003
src/core/SkNx.h
src/opts/SkNx_neon.h
src/opts/SkNx_sse.h
tests/SkNxTest.cpp