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

# ARLT -- Replace if less than.  If A[i] is less than FLOOR replace by NEWVAL.

procedure arlti (a, npix, floor, newval)

int	a[ARB]
int	npix
int	floor, newval
int	i

begin

	do i = 1, npix
	    if (a[i] < floor)
		a[i] = newval
end