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
This commit is contained in:
parent
e878e726bd
commit
069aea7f2c
@ -190,7 +190,7 @@ inline bool SkFixedNearlyZero(SkFixed x, SkFixed tolerance = SK_FixedNearlyZero)
|
|||||||
#define SkFixedSquare(a) SkFixedSquare_longlong(a)
|
#define SkFixedSquare(a) SkFixedSquare_longlong(a)
|
||||||
#endif
|
#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
|
/* This guy does not handle NaN or other obscurities, but is faster than
|
||||||
than (int)(x*65536)
|
than (int)(x*65536)
|
||||||
*/
|
*/
|
||||||
@ -203,6 +203,7 @@ inline bool SkFixedNearlyZero(SkFixed x, SkFixed tolerance = SK_FixedNearlyZero)
|
|||||||
"mov %2, %3, lsl #8 \n"
|
"mov %2, %3, lsl #8 \n"
|
||||||
"orr %2, %2, #0x80000000 \n"
|
"orr %2, %2, #0x80000000 \n"
|
||||||
"mov %1, %2, lsr %1 \n"
|
"mov %1, %2, lsr %1 \n"
|
||||||
|
"it cs \n"
|
||||||
"rsbcs %1, %1, #0 \n"
|
"rsbcs %1, %1, #0 \n"
|
||||||
: "=r"(x), "=&r"(y), "=&r"(z)
|
: "=r"(x), "=&r"(y), "=&r"(z)
|
||||||
: "r"(x)
|
: "r"(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user