aboutsummaryrefslogtreecommitdiff
path: root/sys/osb/and.c
blob: 98dcbb0766569182312c97bbe05337db93f21800 (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
27
28
29
30
31
32
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
 */

#define	import_spp
#define import_knames
#include <iraf.h>

/* ANDI -- Bitwise boolean AND of two integer variables.
 */
XINT
ANDI (XINT *a, XINT *b)
{
	return (*a & *b);
}


/* ANDS -- Bitwise boolean AND of two short integer variables.
 */
XSHORT
ANDS (XSHORT *a, XSHORT *b)
{
	return (*a & *b);
}


/* ANDL -- Bitwise boolean AND of two long integer variables.
 */
XLONG
ANDL (XLONG *a, XLONG *b)
{
	return (*a & *b);
}