mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
WL#5486: Remove code for unsupported platforms
Remove ASM for MC68000 and Vax.
This commit is contained in:
parent
e8fb899205
commit
37b8fa0b2b
6 changed files with 1 additions and 155 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue