summaryrefslogtreecommitdiff
path: root/tests/trootn_ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-13 13:59:20 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-13 13:59:20 +0000
commita530ebc2df8bcbf1e3397092d06525a141511329 (patch)
treefc1c1fbc5cd010d2dc73e498cbf9d3010a05fc4e /tests/trootn_ui.c
parente3f9fb9f689f7556bfcfa90a78ccd5c4f797a360 (diff)
downloadmpfr-a530ebc2df8bcbf1e3397092d06525a141511329.tar.gz
New mpfr_rootn_ui function; mpfr_root deprecated.
* src/root.c: mpfr_rootn_ui is now the main code, and mpfr_root calls mpfr_rootn_ui. * src/mpfr.h: added mpfr_rootn_ui prototype; marked mpfr_root as deprecated. * Added tests/trootn_ui.c (includes troot.c). * tests/troot.c: made it usable (via #include) by the new trootn_ui.c test. * tests/Makefile.am: added trootn_ui; at the same time, corrected the order of the test programs (lexicographic, with exceptions). * NEWS, TODO, doc/mpfr.texi: update. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11741 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/trootn_ui.c')
-rw-r--r--tests/trootn_ui.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/trootn_ui.c b/tests/trootn_ui.c
new file mode 100644
index 000000000..cc5e6dc2b
--- /dev/null
+++ b/tests/trootn_ui.c
@@ -0,0 +1,24 @@
+/* Test file for mpfr_rootn_ui.
+
+Copyright 2017 Free Software Foundation, Inc.
+Contributed by the AriC and Caramba projects, INRIA.
+
+This file is part of the GNU MPFR Library.
+
+The GNU 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 3 of the License, or (at your
+option) any later version.
+
+The GNU 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 GNU MPFR Library; see the file COPYING.LESSER. If not, see
+http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#define TF mpfr_rootn_ui
+#include "troot.c"