aboutsummaryrefslogtreecommitdiff
path: root/unix/as.macintel/amovd.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/as.macintel/amovd.c')
-rw-r--r--unix/as.macintel/amovd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/unix/as.macintel/amovd.c b/unix/as.macintel/amovd.c
new file mode 100644
index 00000000..0cfa8906
--- /dev/null
+++ b/unix/as.macintel/amovd.c
@@ -0,0 +1,17 @@
+/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+ */
+
+#define import_spp
+#define import_knames
+#include <iraf.h>
+
+/* AMOVD -- Copy a block of memory.
+ * [Specially optimized for Sun/IRAF].
+ */
+AMOVD (a, b, n)
+XDOUBLE *a, *b;
+XINT *n;
+{
+ if (a != b)
+ memmove ((char *)b, (char *)a, *n * sizeof(*a));
+}