aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amaxks.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/amaxks.x')
-rw-r--r--sys/vops/lz/amaxks.x16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/vops/lz/amaxks.x b/sys/vops/lz/amaxks.x
new file mode 100644
index 00000000..31aeb0b0
--- /dev/null
+++ b/sys/vops/lz/amaxks.x
@@ -0,0 +1,16 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AMAXK -- Compute the maximum of a constant and a vector (generic).
+
+procedure amaxks (a, b, c, npix)
+
+short a[ARB]
+short b
+short c[ARB]
+int npix, i
+
+begin
+
+ do i = 1, npix
+ c[i] = max (a[i], b)
+end