2007-09-10 Janis Johnson <janis187@us.ibm.com>
[official-gcc.git] / libdecnumber / decExcept.h
blob12ba87d01fbff88a9ffd297b64fba033c45c4db6
1 /* Temporary library support for decimal floating point.
2 Copyright (C) 2006 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 In addition to the permissions in the GNU General Public License, the
12 Free Software Foundation gives you unlimited permission to link the
13 compiled version of this file into combinations with other programs,
14 and to distribute those combinations without any restriction coming
15 from the use of this file. (The General Public License restrictions
16 do apply in other respects; for example, they cover modification of
17 the file, and distribution when not linked into a combine
18 executable.)
20 GCC is distributed in the hope that it will be useful, but WITHOUT
21 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
23 License for more details.
25 You should have received a copy of the GNU General Public License
26 along with GCC; see the file COPYING. If not, write to the Free
27 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
28 02110-1301, USA. */
30 #include <fenv.h>
31 #include "config.h"
32 #include "decContext.h"
34 #define DFP_EXCEPTIONS_ENABLED 1
35 #define DFP_HANDLE_EXCEPTIONS(A) __dfp_raise_except(A)
37 void __dfp_clear_except (void);
38 int __dfp_test_except (int);
39 void __dfp_raise_except (int);