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

# AMAX -- Compute the maximum of two vectors (generic).

procedure amaxx (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