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

# AMAXK -- Compute the maximum of a constant and a vector (generic).

procedure amaxki (a, b, c, npix)

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

begin

	do i = 1, npix
		c[i] = max (a[i], b)
end