aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/ak/ahivd.x
blob: fb851f9587c049a94c7f3a354a1e5a38861d8d86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AHIV -- Compute the high value (maximum) of a vector.

double procedure ahivd (a, npix)

double	a[ARB]
int	npix
double	high, pixval
int	i

begin
	high = a[1]

	do i = 1, npix {
	    pixval = a[i]
	    if (pixval > high)
		high = pixval
	}

	return (high)
end