From 069aea7f2ca9698dddfc2679e26ce61519b91b55 Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Mon, 29 Jul 2013 19:30:00 +0000 Subject: [PATCH] one more thing to try before rebaselining android BUG= R=djsollen@google.com Review URL: https://codereview.chromium.org/21112004 git-svn-id: http://skia.googlecode.com/svn/trunk@10420 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkFixed.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h index abeeccce10..acfbe9af95 100644 --- a/include/core/SkFixed.h +++ b/include/core/SkFixed.h @@ -190,7 +190,7 @@ inline bool SkFixedNearlyZero(SkFixed x, SkFixed tolerance = SK_FixedNearlyZero) #define SkFixedSquare(a) SkFixedSquare_longlong(a) #endif -#if defined(SK_CPU_ARM) && !defined(__thumb__) +#if defined(SK_CPU_ARM) /* This guy does not handle NaN or other obscurities, but is faster than than (int)(x*65536) */ @@ -203,6 +203,7 @@ inline bool SkFixedNearlyZero(SkFixed x, SkFixed tolerance = SK_FixedNearlyZero) "mov %2, %3, lsl #8 \n" "orr %2, %2, #0x80000000 \n" "mov %1, %2, lsr %1 \n" + "it cs \n" "rsbcs %1, %1, #0 \n" : "=r"(x), "=&r"(y), "=&r"(z) : "r"(x)