aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/aminx.x
blob: 591b23e4307996384ff0454e23fcf630d4360582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AMIN -- Compute the minimum of two vectors (generic).

procedure aminx (a, b, c, npix)

complex	a[ARB], b[ARB], c[ARB]
int	npix, i

begin
	do i = 1, npix
		if (abs(a[i]) <= abs(b[i]))
		    c[i] = a[i]
		else
		    c[i] = b[i]
end