diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-29 18:34:56 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-29 18:34:56 +0000 |
commit | 9dfa4821f3b10eb367d1694e4f6b18e7f4a36c44 (patch) | |
tree | 0e45af83e880d77674ad22929e17ff16e2f1a5e4 /libdecnumber/decRound.h | |
parent | 3953ee1cd1c9fd6023d4548fe5a5d9ff3f230785 (diff) | |
download | gcc-9dfa4821f3b10eb367d1694e4f6b18e7f4a36c44.tar.gz |
libdecnumber/
* decRound.c: Move declarations to new file, update comments.
* decRound.h: New file.
gcc/
* mklibgcc.in: Fix dependencies for dfp-bit.c.
* config/dfp-bit.h (CONTEXT_ROUND): Delete.
(DFP_INIT_ROUNDMODE): Define.
* config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libdecnumber/decRound.h')
-rw-r--r-- | libdecnumber/decRound.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libdecnumber/decRound.h b/libdecnumber/decRound.h new file mode 100644 index 00000000000..2a708f8cb17 --- /dev/null +++ b/libdecnumber/decRound.h @@ -0,0 +1,28 @@ +/* Internal testing support for rounding for decimal float. + + Copyright (C) 2006 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GCC is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public + License for more details. + + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ + +#include "decContext.h" + +#define DFP_INIT_ROUNDMODE(A) A = __decGetRound() + +extern void __dfp_set_round (int); +extern int __dfp_get_round (void); +extern enum rounding __decGetRound (void); |