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