aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amodkl.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/amodkl.x')
-rw-r--r--sys/vops/lz/amodkl.x15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/vops/lz/amodkl.x b/sys/vops/lz/amodkl.x
new file mode 100644
index 00000000..ef9ec8b3
--- /dev/null
+++ b/sys/vops/lz/amodkl.x
@@ -0,0 +1,15 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AMODK -- Compute the modulus of a vector by a constant (generic).
+
+procedure amodkl (a, b, c, npix)
+
+long a[ARB]
+long b
+long c[ARB]
+int npix, i
+
+begin
+ do i = 1, npix
+ c[i] = mod (a[i], b)
+end