summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 10:16:17 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 10:16:17 +0000
commit1cd11b42766c57e2118aac4ffe5219fac353904d (patch)
treea3bd9c35d301e12837131509684382daead7bc44
parent9d5ff239aad15d22cada46e7fdd16460318e64ab (diff)
downloadmpfr-1cd11b42766c57e2118aac4ffe5219fac353904d.tar.gz
use integers instead of double's
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2558 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tui_pow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tui_pow.c b/tests/tui_pow.c
index 1e00d4eea..62964f881 100644
--- a/tests/tui_pow.c
+++ b/tests/tui_pow.c
@@ -210,7 +210,8 @@ main (int argc, char *argv[])
mpfr_clear (t);
mpfr_set_prec (x, 2);
- mpfr_set_d (x, 0.5, GMP_RNDN);
+ mpfr_set_ui (x, 1, GMP_RNDN);
+ mpfr_div_2exp (x, x, 1, GMP_RNDN); /* x = 1/2 */
check1 (x, 2, 398441521, GMP_RNDN); /* 398441521 = 19961^2 */
/* generic test */