From a530ebc2df8bcbf1e3397092d06525a141511329 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Wed, 13 Sep 2017 13:59:20 +0000 Subject: 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 --- tests/trootn_ui.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/trootn_ui.c (limited to 'tests/trootn_ui.c') 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" -- cgit v1.2.1