blob: 71b1d2d0b6e4ac51dbaee3f8866986ce5bc0fb64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_knames
#include <iraf.h>
/* OS_AMOVB -- Memory to memory copy using BYTMOV.
*/
void
os_amovb (
char *a,
char *b,
int nbytes
)
{
XCHAR *a_wp, *b_wp;
XINT a_off, b_off;
extern void BYTMOV();
a_wp = (XCHAR *)a;
b_wp = (XCHAR *)b;
/* The following offsets can be something other than one if the
* buffers are not word aligned.
*/
a_off = a - (char *)a_wp + 1;
b_off = b - (char *)b_wp + 1;
BYTMOV (a_wp, &a_off, b_wp, &b_off, &nbytes);
}
|