]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/iso646.h
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / Include / iso646.h
diff --git a/StdLib/Include/iso646.h b/StdLib/Include/iso646.h
new file mode 100644 (file)
index 0000000..c72d5d6
--- /dev/null
@@ -0,0 +1,32 @@
+/** @file\r
+  Provides alternative "spellings" for several C operators.\r
+\r
+  The header <iso646.h> defines the following eleven macros (on the left) that expand\r
+  to the corresponding tokens (on the right).\r
+\r
+Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
+#ifndef _ISO646_H\r
+#define _ISO646_H\r
+#include  <sys/EfiCdefs.h>\r
+\r
+#define and     &&\r
+#define and_eq  &=\r
+#define bitand  &\r
+#define bitor   |\r
+#define compl   ~\r
+#define not     !\r
+#define not_eq  !=\r
+#define or      ||\r
+#define or_eq   |=\r
+#define xor     ^\r
+#define xor_eq  ^=\r
+\r
+#endif  /* _ISO646_H */\r