summaryrefslogtreecommitdiff
path: root/volatile.c
diff options
context:
space:
mode:
authorryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-25 00:28:30 +0000
committerryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-25 00:28:30 +0000
commitd3d000ed9855b7023f18883200f8f415f8feda05 (patch)
treedee16afe854ff04f940bd82b9868d7ce3c4dd0a1 /volatile.c
parent31875be0b66c2617d677607c2f244a76a86ff4fe (diff)
downloadmpfr-d3d000ed9855b7023f18883200f8f415f8feda05.tar.gz
New file.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2230 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'volatile.c')
-rw-r--r--volatile.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/volatile.c b/volatile.c
new file mode 100644
index 000000000..637ac59b3
--- /dev/null
+++ b/volatile.c
@@ -0,0 +1,41 @@
+/* __gmpfr_longdouble_volatile -- support for LONGDOUBLE_NAN_ACTION.
+
+ THE FUNCTIONS IN THIS FILE ARE FOR INTERNAL USE ONLY. THEY'RE ALMOST
+ CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
+ FUTURE MPFR RELEASES.
+
+Copyright 2003 Free Software Foundation, Inc.
+
+This file is part of the MPFR Library.
+
+The MPFR Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+
+The MPFR Library 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 Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the MPFR Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+#include "gmp.h"
+#include "gmp-impl.h"
+#include "mpfr.h"
+#include "mpfr-impl.h"
+
+
+/* Only needed if "volatile" doesn't work, ie. has been #defined to empty in
+ config.h. */
+
+#ifdef volatile
+long double
+__gmpfr_longdouble_volatile (long double x)
+{
+ return x;
+}
+#endif