aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/ak/aandki.x
blob: 792b491ed8cf3640d9365f6a11804e19767a41ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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 aandki (a, b, c, npix)

int	a[ARB]
int	b
int	c[ARB]
int	npix, i
int	and()

begin
	do i = 1, npix {
		c[i] = and (a[i], b)
	}
end