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

# ARGT -- Replace if greater than.  If A[i] is greater than CEIL replace by
# NEWVAL.

procedure argtd (a, npix, ceil, newval)

double	a[ARB]
int	npix
double	ceil, newval
int	i

begin

	do i = 1, npix
	    if (a[i] > ceil)
		a[i] = newval
end