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

complex	a[ARB]
int	npix
complex	ceil, newval
int	i
real	abs_ceil

begin
	abs_ceil = abs (ceil)

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