]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Main/infinityf_ieee754.c
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / StdLib / LibC / Main / infinityf_ieee754.c
CommitLineData
2aa62f2b 1/* $NetBSD: infinityf_ieee754.c,v 1.2 2005/06/12 05:21:27 lukem Exp $ */\r
2\r
3/*\r
4 * IEEE-compatible infinityf.c -- public domain.\r
5 */\r
6#include <LibConfig.h>\r
7#include <sys/EfiCdefs.h>\r
8#if defined(LIBC_SCCS) && !defined(lint)\r
9__RCSID("$NetBSD: infinityf_ieee754.c,v 1.2 2005/06/12 05:21:27 lukem Exp $");\r
10#endif /* LIBC_SCCS and not lint */\r
11\r
12#include <math.h>\r
13#include <machine/endian.h>\r
14\r
15const union __float_u __infinityf =\r
16#if BYTE_ORDER == BIG_ENDIAN\r
17 { { 0x7f, 0x80, 0, 0 } };\r
18#else\r
19 { { 0, 0, 0x80, 0x7f } };\r
20#endif\r