]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - StdLib/Include/iso646.h
Fix a bug about the iSCSI DHCP dependency issue.
[mirror_edk2.git] / StdLib / Include / iso646.h
... / ...
CommitLineData
1/** @file\r
2 Provides alternative "spellings" for several C operators.\r
3\r
4 The header <iso646.h> defines the following eleven macros (on the left) that expand\r
5 to the corresponding tokens (on the right).\r
6\r
7 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
8 This program and the accompanying materials are licensed and made available under\r
9 the terms and conditions of the BSD License that accompanies this distribution.\r
10 The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.\r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15**/\r
16#ifndef _ISO646_H\r
17#define _ISO646_H\r
18#include <sys/EfiCdefs.h>\r
19\r
20#define and && ///< Logical AND of two boolean expressions\r
21#define and_eq &= ///< Bitwise AND with assignment to lval\r
22#define bitand & ///< Bitwise AND of two scalar expressions\r
23#define bitor | ///< Bitwise OR of two scalar expressions\r
24#define compl ~ ///< Binary complement\r
25#define not ! ///< Logical complement of a boolean expression\r
26#define not_eq != ///< Not-equal comparison\r
27#define or || ///< Logical OR of two boolean expressions\r
28#define or_eq |= ///< Bitwise OR with assignment to lval\r
29#define xor ^ ///< Exclusive OR\r
30#define xor_eq ^= ///< Exclusive OR with assignment to lval\r
31\r
32#endif /* _ISO646_H */\r