aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/argts.x
blob: 815f753f0e009e3a93a396e13b3bd18faadf0a73 (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 argts (a, npix, ceil, newval)

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

begin

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