WL#5486: Remove code for unsupported platforms

Remove ASM for MC68000 and Vax.
This commit is contained in:
Davi Arnaut 2010-07-26 18:16:48 -03:00
commit 37b8fa0b2b
6 changed files with 1 additions and 155 deletions

View file

@ -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 */