Specialize Sk2d for ARM64
authormtklein <mtklein@chromium.org>
Fri, 20 Mar 2015 16:25:26 +0000 (09:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 20 Mar 2015 16:25:26 +0000 (09:25 -0700)
commitb79ff56de23fef680ae7187040f2d6a9516b553d
treeecd0d00d5619b3b98abe0cfe8264d1da9ca6980f
parent70840cbd898df67f603987213164c798415d76bf
Specialize Sk2d for ARM64

The implementation is nearly identical to Sk2f, with these changes:
  - float32x2_t -> float64x2_t
  - vfoo -> vfooq
  - one extra Newton's method step in sqrt().

Also, generally fix NEON detection to be defined(SK_ARM_HAS_NEON).
SK_ARM_HAS_NEON is not being set on ARM64 bots right now (nor does the compiler
seem to set __ARM_NEON__), so this CL fixes everything up.

BUG=skia:

Committed: https://skia.googlesource.com/skia/+/e57b5cab261a243dcbefa74c91c896c28959bf09

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/1020963002
include/core/SkPreConfig.h
src/core/Sk2x.h
src/core/SkPMFloat.h
src/core/SkUtilsArm.h
src/opts/Sk2x_neon.h
src/opts/Sk4x_neon.h