NetBSD project | 3352b62 | 2015-07-30 09:50:51 +0000 | [diff] [blame] | 1 | /* $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
|
| 27 | typedef fp_rnd fp_rnd_t;
|
| 28 | #ifdef _X86_IEEEFP_H_ /* XXX */
|
| 29 | typedef fp_prec fp_prec_t;
|
| 30 | #endif
|
| 31 | typedef fp_except fp_except_t;
|
| 32 |
|
| 33 | fp_rnd_t fpgetround(void);
|
| 34 | fp_rnd_t fpsetround(fp_rnd_t);
|
| 35 | #ifdef _X86_IEEEFP_H_ /* XXX */
|
| 36 | fp_prec_t fpgetprec(void);
|
| 37 | fp_prec_t fpsetprec(fp_prec_t);
|
| 38 | #endif
|
| 39 | fp_except_t fpgetmask(void);
|
| 40 | fp_except_t fpsetmask(fp_except_t);
|
| 41 | fp_except_t fpgetsticky(void);
|
| 42 | fp_except_t fpsetsticky(fp_except_t);
|
| 43 | fp_except_t fpresetsticky(fp_except_t);
|
| 44 | __END_DECLS
|
| 45 |
|
| 46 | #endif /* _IEEEFP_H_ */
|