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

# AANDK -- Compute the bitwise boolean 'and' of a vector and a constant
# (generic)

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

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

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