]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/ieeefp.h
StdLib/LibC: Add software floating point library from NetBSD
[mirror_edk2.git] / StdLib / Include / ieeefp.h
CommitLineData
3352b62b
N
1/* $NetBSD: ieeefp.h,v 1.9 2011/03/27 05:13:15 mrg Exp $ */\r
2/** @file\r
3*\r
4* Copyright (c) 2013 - 2014, ARM Limited. All rights reserved.\r
5*\r
6* This program and the accompanying materials\r
7* are licensed and made available under the terms and conditions of the BSD License\r
8* which accompanies this distribution. The full text of the license may be found at\r
9* http://opensource.org/licenses/bsd-license.php\r
10*\r
11* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13*\r
14**/\r
15/*\r
16 * Written by J.T. Conklin, Apr 6, 1995\r
17 * Public domain.\r
18 */\r
19\r
20#ifndef _IEEEFP_H_\r
21#define _IEEEFP_H_\r
22\r
23#include <sys/cdefs.h>\r
24#include <machine/ieeefp.h>\r
25\r
26__BEGIN_DECLS\r
27typedef fp_rnd fp_rnd_t;\r
28#ifdef _X86_IEEEFP_H_ /* XXX */\r
29typedef fp_prec fp_prec_t;\r
30#endif\r
31typedef fp_except fp_except_t;\r
32\r
33fp_rnd_t fpgetround(void);\r
34fp_rnd_t fpsetround(fp_rnd_t);\r
35#ifdef _X86_IEEEFP_H_ /* XXX */\r
36fp_prec_t fpgetprec(void);\r
37fp_prec_t fpsetprec(fp_prec_t);\r
38#endif\r
39fp_except_t fpgetmask(void);\r
40fp_except_t fpsetmask(fp_except_t);\r
41fp_except_t fpgetsticky(void);\r
42fp_except_t fpsetsticky(fp_except_t);\r
43fp_except_t fpresetsticky(fp_except_t);\r
44__END_DECLS\r
45\r
46#endif /* _IEEEFP_H_ */\r