From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/vops/ak/ahivc.x | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys/vops/ak/ahivc.x (limited to 'sys/vops/ak/ahivc.x') 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 -- cgit