aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/anot.gx
blob: 08f95a47094d903a9f85396ec979fcdbd3da7dff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# ANOT -- Compute the bitwise boolean complement of a vector (generic).

procedure anot$t (a, b, npix)

PIXEL	a[ARB], b[ARB]
int	npix, i
$if (datatype == i)
int	not()
$else
PIXEL	not$t()
$endif

begin
	do i = 1, npix {
	    $if (datatype == i)
		b[i] = not (a[i])
	    $else
		b[i] = not$t (a[i])
	    $endif
	}
end