diff options
Diffstat (limited to 'sys/vops/ak/aandks.x')
-rw-r--r-- | sys/vops/ak/aandks.x | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/vops/ak/aandks.x b/sys/vops/ak/aandks.x new file mode 100644 index 00000000..03a64dcb --- /dev/null +++ b/sys/vops/ak/aandks.x @@ -0,0 +1,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 aandks (a, b, c, npix) + +short a[ARB] +short b +short c[ARB] +int npix, i +short ands() + +begin + do i = 1, npix { + c[i] = ands (a[i], b) + } +end |