From 9dfa4821f3b10eb367d1694e4f6b18e7f4a36c44 Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 29 Nov 2006 18:34:56 +0000 Subject: 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 --- libdecnumber/decRound.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libdecnumber/decRound.c') diff --git a/libdecnumber/decRound.c b/libdecnumber/decRound.c index 3a643f34af2..45c642f1c76 100644 --- a/libdecnumber/decRound.c +++ b/libdecnumber/decRound.c @@ -1,5 +1,6 @@ -/* Temporary support for a libc-like fp environment for decimal float. - Copyright (C) 2005 Free Software Foundation, Inc. +/* Internal testing support for rounding for decimal float. + + Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -20,6 +21,10 @@ #include "config.h" #include "decContext.h" +#include "decRound.h" + +/* Internal, non-documented functions for testing libgcc functions. + This support is not sufficient for application use. */ #define FE_DEC_DOWNWARD 0 #define FE_DEC_TONEAREST 1 @@ -28,11 +33,6 @@ #define FE_DEC_UPWARD 4 #define FE_DEC_MAX 5 -extern void __dfp_set_round (int); -extern int __dfp_get_round (void); -extern enum rounding __decGetRound (void); - -/* FIXME: these should be in thread-local storage for runtime support. */ static enum rounding __dfp_rounding_mode = DEC_ROUND_HALF_EVEN; /* Set the decNumber rounding mode from the FE_DEC_* value in MODE. */ -- cgit v1.2.1