xref: /freebsd/include/iso646.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
10c20d793SAlexander Langer /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3e58eb3c4SPedro F. Giffuni  *
40c20d793SAlexander Langer  * Copyright (c) 1998 Alex Nash
50c20d793SAlexander Langer  * All rights reserved.
60c20d793SAlexander Langer  *
70c20d793SAlexander Langer  * Redistribution and use in source and binary forms, with or without
80c20d793SAlexander Langer  * modification, are permitted provided that the following conditions
90c20d793SAlexander Langer  * are met:
100c20d793SAlexander Langer  * 1. Redistributions of source code must retain the above copyright
110c20d793SAlexander Langer  *    notice, this list of conditions and the following disclaimer.
120c20d793SAlexander Langer  * 2. Redistributions in binary form must reproduce the above copyright
130c20d793SAlexander Langer  *    notice, this list of conditions and the following disclaimer in the
140c20d793SAlexander Langer  *    documentation and/or other materials provided with the distribution.
150c20d793SAlexander Langer  *
160c20d793SAlexander Langer  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
170c20d793SAlexander Langer  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
180c20d793SAlexander Langer  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
190c20d793SAlexander Langer  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
200c20d793SAlexander Langer  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
210c20d793SAlexander Langer  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
220c20d793SAlexander Langer  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
230c20d793SAlexander Langer  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
240c20d793SAlexander Langer  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
250c20d793SAlexander Langer  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
260c20d793SAlexander Langer  * SUCH DAMAGE.
270c20d793SAlexander Langer  */
280c20d793SAlexander Langer 
290c20d793SAlexander Langer #ifndef _ISO646_H_
300c20d793SAlexander Langer #define	_ISO646_H_
310c20d793SAlexander Langer 
327331c169SJung-uk Kim #ifndef __cplusplus
337331c169SJung-uk Kim 
340c20d793SAlexander Langer #define	and	&&
350c20d793SAlexander Langer #define	and_eq	&=
360c20d793SAlexander Langer #define	bitand	&
370c20d793SAlexander Langer #define	bitor	|
380c20d793SAlexander Langer #define	compl	~
390c20d793SAlexander Langer #define	not	!
400c20d793SAlexander Langer #define	not_eq	!=
410c20d793SAlexander Langer #define	or	||
420c20d793SAlexander Langer #define	or_eq	|=
430c20d793SAlexander Langer #define	xor	^
440c20d793SAlexander Langer #define	xor_eq	^=
450c20d793SAlexander Langer 
467331c169SJung-uk Kim #endif /* !__cplusplus */
477331c169SJung-uk Kim 
486c12aec0SBruce Evans #endif /* !_ISO646_H_ */
49