aboutsummaryrefslogtreecommitdiff
path: root/sys/osb/not.c
blob: bbb2ed9e37bd251ad9613b2cf9fa247ac3b4a27a (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>

/* NOTI -- Bitwise boolean NOT of an integer variable.
 */
XINT
NOTI (XINT *a)
{
	return (~(*a));
}


/* NOTS -- Bitwise boolean NOT of a short integer variable.
 */
XSHORT
NOTS (XSHORT *a)
{
	return (~(*a));
}


/* NOTL -- Bitwise boolean NOT of a long integer variable.
 */
XLONG
NOTL (XLONG *a)
{
	return (~(*a));
}