~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/bmove_upp.c

  • Committer: Monty Taylor
  • Date: 2008-08-04 19:37:18 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804193718-f0rz13uli4429ozb
Changed gettext_noop() to N_()

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "m_string.h"
26
26
 
 
27
#if defined(MC68000) && defined(DS90)
 
28
 
 
29
/* 0 <= len <= 65535 */
 
30
void bmove_upp(byte *dst, const byte *src,uint len)
 
31
{
 
32
asm("           movl    12(a7),d0       ");
 
33
asm("           subql   #1,d0           ");
 
34
asm("           blt     .L5             ");
 
35
asm("           movl    4(a7),a1        ");
 
36
asm("           movl    8(a7),a0        ");
 
37
asm(".L4:       movb    -(a0),-(a1)     ");
 
38
asm("           dbf     d0,.L4          ");
 
39
asm(".L5:                               ");
 
40
}
 
41
#else
 
42
 
27
43
void bmove_upp(register unsigned char *dst, register const unsigned char *src,
28
44
               register size_t len)
29
45
{
30
46
  while (len-- != 0) *--dst = *--src;
31
47
}
 
48
 
 
49
#endif