-/* $NetBSD: gdtoa.h,v 1.6.4.1.4.1 2008/04/08 21:10:55 jdc Exp $ */\r
+/** @file\r
\r
-/****************************************************************\r
+ Copyright (c) 2010 - 2014, 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.\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
The author of this software is David M. Gay.\r
\r
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\r
THIS SOFTWARE.\r
\r
+ $NetBSD: gdtoa.h,v 1.6.4.1.4.1 2008/04/08 21:10:55 jdc Exp\r
+\r
****************************************************************/\r
\r
/* Please send bug reports to David M. Gay (dmg at acm dot org,\r
#include "arith.h"\r
\r
#ifndef Long\r
-#define Long EFI_LONG_T\r
+#define Long int32_t\r
#endif\r
#ifndef ULong\r
-#define ULong EFI_ULONG_T\r
+#define ULong uint32_t\r
#endif\r
#ifndef UShort\r
#define UShort uint16_t\r
Please send bug reports to David M. Gay (dmg at acm dot org,\r
with " at " changed at "@" and " dot " changed to ".").\r
\r
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2014, 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
#include <stdint.h>\r
#define Short int16_t\r
#define UShort uint16_t\r
-#define Long EFI_LONG_T\r
-#define ULong EFI_ULONG_T\r
+#define Long int32_t\r
+#define ULong uint32_t\r
#define LLong int64_t\r
#define ULLong uint64_t\r
\r
Exactly one of IEEE_LITTLE_ENDIAN, IEEE_BIG_ENDIAN, VAX, or IBM should be defined.\r
#endif\r
\r
+/* This union assumes that:\r
+ sizeof(double) == 8\r
+ sizeof(UINT32) == 4\r
+\r
+ If this is not the case, the type and dimension of the L member will\r
+ have to be modified.\r
+*/\r
typedef union { double d; UINT32 L[2]; } U;\r
\r
#ifdef YES_ALIAS\r
#endif\r
#else /* !YES_ALIAS */\r
#ifdef IEEE_LITTLE_ENDIAN\r
-#define word0(x) ( /* LINTED */ (U*)&x)->L[1]\r
-#define word1(x) ( /* LINTED */ (U*)&x)->L[0]\r
+#define word0(x) ( /* LINTED */ (U*)&x)->L[1]\r
+#define word1(x) ( /* LINTED */ (U*)&x)->L[0]\r
#else\r
-#define word0(x) ( /* LINTED */ (U*)&x)->L[0]\r
-#define word1(x) ( /* LINTED */ (U*)&x)->L[1]\r
+#define word0(x) ( /* LINTED */ (U*)&x)->L[0]\r
+#define word1(x) ( /* LINTED */ (U*)&x)->L[1]\r
#endif\r
-#define dval(x) ( /* LINTED */ (U*)&x)->d\r
+#define dval(x) ( /* LINTED */ (U*)&x)->d\r
#endif /* YES_ALIAS */\r
\r
/* The following definition of Storeinc is appropriate for MIPS processors.\r