From d7c014ff03d44d3ed7a6a2ddca59621a7e98f739 Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 27 Apr 2015 14:22:32 -0700 Subject: 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 --- tests/SkNxTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/SkNxTest.cpp') 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 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); -- cgit v1.2.3