summaryrefslogtreecommitdiff
path: root/strings/strend.c
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-07-26 18:16:48 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-07-26 18:16:48 -0300
commit37b8fa0b2b84f5a4800fc30259dc892102a9f067 (patch)
treed00fb872f414918ca738a38dbaaa4afed8644c08 /strings/strend.c
parente8fb899205a43e050c56e584ccbb24747034d675 (diff)
downloadmariadb-git-37b8fa0b2b84f5a4800fc30259dc892102a9f067.tar.gz
WL#5486: Remove code for unsupported platforms
Remove ASM for MC68000 and Vax.
Diffstat (limited to 'strings/strend.c')
-rw-r--r--strings/strend.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/strings/strend.c b/strings/strend.c
index 4dadf0675dc..d70a5d648d5 100644
--- a/strings/strend.c
+++ b/strings/strend.c
@@ -24,27 +24,14 @@
is, strend(s)-s == strlen(s). This is useful for adding things at
the end of strings. It is redundant, because strchr(s,'\0') could
be used instead, but this is clearer and faster.
- Beware: the asm version works only if strlen(s) < 65535.
*/
#include <my_global.h>
#include "m_string.h"
-#if VaxAsm
-
-char *strend(s)
-const char *s;
-{
- asm("locc $0,$65535,*4(ap)");
- asm("movl r1,r0");
-}
-
-#else /* ~VaxAsm */
-
char *strend(register const char *s)
{
while (*s++);
return (char*) (s-1);
}
-#endif /* VaxAsm */