aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/arltx.x
blob: 8ea55d5f56a0706ae67f89ded4a9f32d4b6432c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 arltx (a, npix, floor, newval)

complex	a[ARB]
int	npix
complex	floor, newval
int	i
real	abs_floor

begin
	abs_floor = abs (floor)

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