aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/alovs.x
blob: 30a83bed55c5ce3f8f63758d92037583401506e1 (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.

# ALOV -- Compute the low value (minimum) of a vector.

short procedure alovs (a, npix)

short	a[ARB]
int	npix
short	low, pixval
int	i

begin
	low = a[1]

	do i = 1, npix {
	    pixval = a[i]
	    if (pixval < low)
		low = pixval
	}

	return (low)
end