]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Math/s_infinity.c
ArmPkg: ArmLib: purge incorrect ArmDrainWriteBuffer () alias
[mirror_edk2.git] / StdLib / LibC / Math / s_infinity.c
CommitLineData
2aa62f2b 1/* $NetBSD: s_infinity.c,v 1.5 2003/07/26 19:25:05 salo Exp $ */\r
2\r
3/*\r
4 * Written by J.T. Conklin <jtc@NetBSD.org>.\r
5 * Public domain.\r
6 */\r
7#include <LibConfig.h>\r
8\r
9#include <sys/types.h>\r
10\r
11#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */\r
12 // Force 8-byte alignment\r
13 #define ALIGN8 __declspec(align(8))\r
14\r
15 // C4742: identifier has different alignment in 'X' and 'Y'\r
16 #pragma warning ( disable : 4742 )\r
17 // C4744: identifier has different type in 'X' and 'Y'\r
18 #pragma warning ( disable : 4744 )\r
19#else\r
20 #define ALIGN8\r
21#endif\r
22\r
23#if BYTE_ORDER == LITTLE_ENDIAN\r
24ALIGN8 char __infinity[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f };\r
25#else\r
26ALIGN8 char __infinity[] = { 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\r
27#endif\r