diff options
author | mtklein <mtklein@chromium.org> | 2015-04-27 14:22:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 14:22:32 -0700 |
commit | d7c014ff03d44d3ed7a6a2ddca59621a7e98f739 (patch) | |
tree | 0739bd83543af31c22ef25e1b352cedb56a4ee77 /tests/SkNxTest.cpp | |
parent | 498856ebc6f22d7018071bd6696756d7cd077ab8 (diff) |
Split rsqrt into rsqrt{0,1,2}, with increasing cost and precision on ARM
This is a logical no-op. Everything was using the equivalent of rsqrt1() before, and is now after.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/9de16283fdc8cc0d31a84f503578d0ecea4e8297
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot
Review URL: https://codereview.chromium.org/1109913002
Diffstat (limited to 'tests/SkNxTest.cpp')
-rw-r--r-- | tests/SkNxTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/SkNxTest.cpp b/tests/SkNxTest.cpp index 25ece3867b..dec7329c2c 100644 --- a/tests/SkNxTest.cpp +++ b/tests/SkNxTest.cpp @@ -50,7 +50,9 @@ static void test_Nf(skiatest::Reporter* r) { SkNf<N,T> fours(4); assert_eq(fours.sqrt(), 2,2,2,2); - assert_nearly_eq(0.001, fours.rsqrt(), 0.5, 0.5, 0.5, 0.5); + assert_nearly_eq(0.001, fours.rsqrt0(), 0.5, 0.5, 0.5, 0.5); + assert_nearly_eq(0.001, fours.rsqrt1(), 0.5, 0.5, 0.5, 0.5); + assert_nearly_eq(0.001, fours.rsqrt2(), 0.5, 0.5, 0.5, 0.5); assert_eq( fours. invert(), 0.25, 0.25, 0.25, 0.25); assert_nearly_eq(0.001, fours.approxInvert(), 0.25, 0.25, 0.25, 0.25); |