diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-26 18:16:48 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-26 18:16:48 -0300 |
commit | fce8b7e1937d8518bb2a8424c83d3c9a86015b03 (patch) | |
tree | d00fb872f414918ca738a38dbaaa4afed8644c08 /strings/strend.c | |
parent | 9c84153550b6c46f6a84008c7cbd0d05ce22542c (diff) | |
download | mariadb-git-fce8b7e1937d8518bb2a8424c83d3c9a86015b03.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.c | 13 |
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 */ |