@@ -68,7 +68,7 @@
* allows to identify exactly which byte has matched.
*/
-#ifndef NO_THUMB
+#ifdef __thumb__
.thumb_func
#else
.arm
@@ -132,7 +132,7 @@ ENTRY(memchr)
/* The first block can also be the last */
bls .Lmasklast
/* Have we found something already? */
-#ifndef NO_THUMB
+#ifdef __thumb__
cbnz synd, .Ltail
#else
cmp synd, #0
@@ -176,14 +176,11 @@ ENTRY(memchr)
vpadd.i8 vdata0_0, vdata0_0, vdata1_0
vpadd.i8 vdata0_0, vdata0_0, vdata0_0
vmov synd, vdata0_0[0]
-#ifndef NO_THUMB
+#ifdef __thumb__
cbz synd, .Lnotfound
bhi .Ltail /* Uses the condition code from
subs cntin, cntin, #32 above. */
#else
- cmp synd, #0
- beq .Lnotfound
- cmp cntin, #0
bhi .Ltail
#endif