blob: 6dcea5d914caf57e6b89d85a9036bc38b0f5aed6 (
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.
# ABOR -- Compute the bitwise boolean 'or' of two vectors (generic).
procedure abor$t (a, b, c, npix)
PIXEL a[ARB], b[ARB], c[ARB]
int npix, i
$if (datatype == i)
int or()
$else
PIXEL or$t()
$endif
begin
do i = 1, npix {
$if (datatype == i)
c[i] = or (a[i], b[i])
$else
c[i] = or$t (a[i], b[i])
$endif
}
end
|