summaryrefslogtreecommitdiff
path: root/StdLib/Include/ieeefp.h
blob: ee3edf55664bb61b3d0df1ba6fa4329a05ff6406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*  $NetBSD: ieeefp.h,v 1.9 2011/03/27 05:13:15 mrg Exp $   */
/** @file
*
*  Copyright (c) 2013 - 2014, ARM Limited. All rights reserved.
*
*  This program and the accompanying materials
*  are licensed and made available under the terms and conditions of the BSD License
*  which accompanies this distribution.  The full text of the license may be found at
*  http://opensource.org/licenses/bsd-license.php
*
*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*
**/
/*
 * Written by J.T. Conklin, Apr 6, 1995
 * Public domain.
 */

#ifndef _IEEEFP_H_
#define _IEEEFP_H_

#include <sys/cdefs.h>
#include <machine/ieeefp.h>

__BEGIN_DECLS
typedef fp_rnd fp_rnd_t;
#ifdef _X86_IEEEFP_H_   /* XXX */
typedef fp_prec fp_prec_t;
#endif
typedef fp_except fp_except_t;

fp_rnd_t    fpgetround(void);
fp_rnd_t    fpsetround(fp_rnd_t);
#ifdef _X86_IEEEFP_H_   /* XXX */
fp_prec_t   fpgetprec(void);
fp_prec_t   fpsetprec(fp_prec_t);
#endif
fp_except_t fpgetmask(void);
fp_except_t fpsetmask(fp_except_t);
fp_except_t fpgetsticky(void);
fp_except_t fpsetsticky(fp_except_t);
fp_except_t fpresetsticky(fp_except_t);
__END_DECLS

#endif /* _IEEEFP_H_ */