aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/axork.gx
blob: eeb3694c0f5ba6b42511a6ce68156045766d9ac3 (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
24
25
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AXORK -- Compute the boolean or of a vector and a constant (generic).

procedure axork$t (a, b, c, npix)

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

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