diff options
Diffstat (limited to 'newlib/libc/machine/arm/strlen-stub.c')
-rw-r--r-- | newlib/libc/machine/arm/strlen-stub.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/newlib/libc/machine/arm/strlen-stub.c b/newlib/libc/machine/arm/strlen-stub.c index d77c7fc5b..97500e0e8 100644 --- a/newlib/libc/machine/arm/strlen-stub.c +++ b/newlib/libc/machine/arm/strlen-stub.c @@ -36,18 +36,8 @@ /* Implemented in strlen.S. */ #else -size_t -strlen (const char* str) -{ - int scratch; - const char* end; - asm ("1:\n\t" - "ldrb %1, [%0], #1\n\t" - "cmp %1, #0\n\t" - "bne 1b" - : "=&r" (end), "=&r" (scratch) : "0" (str) : "memory", "cc"); - return end - str - 1; -} +/* Implemented in strlen.S. */ + #endif #else /* defined __OPTIMIZE_SIZE__ || defined PREFER_SIZE_OVER_SPEED */ |