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