Home | History | Annotate | Line # | Download | only in libdecnumber
      1  1.1  christos /* Temporary library support for decimal floating point.
      2  1.6  christos    Copyright (C) 2006-2018 Free Software Foundation, Inc.
      3  1.1  christos 
      4  1.1  christos    This file is part of GCC.
      5  1.1  christos 
      6  1.1  christos    GCC is free software; you can redistribute it and/or modify it
      7  1.1  christos    under the terms of the GNU General Public License as published by
      8  1.1  christos    the Free Software Foundation; either version 3, or (at your option)
      9  1.1  christos    any later version.
     10  1.1  christos 
     11  1.1  christos    GCC is distributed in the hope that it will be useful, but WITHOUT
     12  1.1  christos    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     13  1.1  christos    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     14  1.1  christos    License for more details.
     15  1.1  christos 
     16  1.1  christos Under Section 7 of GPL version 3, you are granted additional
     17  1.1  christos permissions described in the GCC Runtime Library Exception, version
     18  1.1  christos 3.1, as published by the Free Software Foundation.
     19  1.1  christos 
     20  1.1  christos You should have received a copy of the GNU General Public License and
     21  1.1  christos a copy of the GCC Runtime Library Exception along with this program;
     22  1.1  christos see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
     23  1.1  christos <http://www.gnu.org/licenses/>.  */
     24  1.1  christos 
     25  1.1  christos #include <fenv.h>
     26  1.1  christos #include "dconfig.h"
     27  1.1  christos #include "decContext.h"
     28  1.1  christos 
     29  1.1  christos #define DFP_EXCEPTIONS_ENABLED 1
     30  1.1  christos #define DFP_HANDLE_EXCEPTIONS(A) __dfp_raise_except(A)
     31  1.1  christos 
     32  1.1  christos void __dfp_clear_except (void);
     33  1.1  christos int __dfp_test_except (int);
     34  1.1  christos void __dfp_raise_except (int);
     35