]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/Aarch64/machine/float.h
StdLib: Add support for AArch64
[mirror_edk2.git] / StdLib / Include / Aarch64 / machine / float.h
CommitLineData
1bbb83b5
HL
1/* $NetBSD: float.h,v 1.6 2005/12/11 12:16:47 christos Exp $ */\r
2/*-\r
3 * Copyright (c) 2008 The NetBSD Foundation, Inc.\r
4 * All rights reserved.\r
5 *\r
6 * This code is derived from software contributed to The NetBSD Foundation\r
7 * by\r
8 *\r
9 * Redistribution and use in source and binary forms, with or without\r
10 * modification, are permitted provided that the following conditions\r
11 * are met:\r
12 * 1. Redistributions of source code must retain the above copyright\r
13 * notice, this list of conditions and the following disclaimer.\r
14 * 2. Redistributions in binary form must reproduce the above copyright\r
15 * notice, this list of conditions and the following disclaimer in the\r
16 * documentation and/or other materials provided with the distribution.\r
17 *\r
18 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
19 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
20 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
22 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
28 * POSSIBILITY OF SUCH DAMAGE.\r
29 */\r
30\r
31#ifndef _AARCH64_FLOAT_H_\r
32#define _AARCH64_FLOAT_H_\r
33\r
34#ifndef __VFP_FP__\r
35#define LDBL_MANT_DIG 64\r
36#define LDBL_EPSILON 1.0842021724855044340E-19L\r
37#define LDBL_DIG 18\r
38#define LDBL_MIN_EXP (-16381)\r
39#define LDBL_MIN 1.6810515715560467531E-4932L\r
40#define LDBL_MIN_10_EXP (-4931)\r
41#define LDBL_MAX_EXP 16384\r
42#define LDBL_MAX 1.1897314953572317650E+4932L\r
43#define LDBL_MAX_10_EXP 4932\r
44#endif\r
45\r
46#include <sys/float_ieee754.h>\r
47\r
48#ifndef __VFP_FP__\r
49#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \\r
50 !defined(_XOPEN_SOURCE) || \\r
51 ((__STDC_VERSION__ - 0) >= 199901L) || \\r
52 ((_POSIX_C_SOURCE - 0) >= 200112L) || \\r
53 ((_XOPEN_SOURCE - 0) >= 600) || \\r
54 defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)\r
55#define DECIMAL_DIG 21\r
56#endif /* !defined(_ANSI_SOURCE) && ... */\r
57#endif /* !__VFP_FP__ */\r
58\r
59#endif /* !_AARCH64_FLOAT_H_ */\r