aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/ak/ahivc.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/ak/ahivc.x')
-rw-r--r--sys/vops/ak/ahivc.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/vops/ak/ahivc.x b/sys/vops/ak/ahivc.x
new file mode 100644
index 00000000..93a39259
--- /dev/null
+++ b/sys/vops/ak/ahivc.x
@@ -0,0 +1,22 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AHIV -- Compute the high value (maximum) of a vector.
+
+char procedure ahivc (a, npix)
+
+char a[ARB]
+int npix
+char high, pixval
+int i
+
+begin
+ high = a[1]
+
+ do i = 1, npix {
+ pixval = a[i]
+ if (pixval > high)
+ high = pixval
+ }
+
+ return (high)
+end