aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Sk2xTest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-03-20 11:28:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-20 11:28:52 -0700
commit01a78130dc357e5ee746a37650dba622e0c07f8e (patch)
tree455ea9a788ec0c87fbcb9da297d19c9b4709b78e /tests/Sk2xTest.cpp
parentf224f138da156f602e9eeedd3ddf6716662a1ca4 (diff)
Add divide to Sk2x, use native vdiv and vsqrt on ARM 64.
Tests pass on N7 + N9. BUG=skia: CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Mac10.7-Clang-Arm7-Debug-iOS-Trybot,Build-Ubuntu-GCC-Arm64-Release-Android-Trybot Review URL: https://codereview.chromium.org/1027753003
Diffstat (limited to 'tests/Sk2xTest.cpp')
-rw-r--r--tests/Sk2xTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Sk2xTest.cpp b/tests/Sk2xTest.cpp
index a3b86b2481..b74cc5bf2f 100644
--- a/tests/Sk2xTest.cpp
+++ b/tests/Sk2xTest.cpp
@@ -44,6 +44,7 @@ static void test(skiatest::Reporter* r) {
REPORTER_ASSERT(r, eq(a + d, 6, 9));
REPORTER_ASSERT(r, eq(a - d, 2, -1));
REPORTER_ASSERT(r, eq(a * d, 8, 20));
+ REPORTER_ASSERT(r, eq(a / d, 2, 0.8));
REPORTER_ASSERT(r, nearly_eq(0.001, a.rsqrt(), 0.5, 0.5));
REPORTER_ASSERT(r, eq(a.sqrt(), 2, 2));