~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/bmove_upp.cc

  • Committer: Brian Aker
  • Date: 2009-01-23 05:05:23 UTC
  • mto: (779.3.3 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: brian@tangent.org-20090123050523-fkyc1gmddjnax173
Solaris build error fix.

Show diffs side-by-side

added added

removed removed

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