aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/arltl.x
blob: 4bda96c3d7e9faa8e04349adc11ef682fec59af9 (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 arltl (a, npix, floor, newval)

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

begin

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