summaryrefslogtreecommitdiff
path: root/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-12-26 11:50:03 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-12-26 11:50:03 +0000
commit6ddc203e5368cf1d4108e64c18b0bf6c7d53d176 (patch)
treedda1d9b65325699c60418cfcd02fa5d800cde1f8 /Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
parentbbfe0bab9260ac7a06a69f710b053dcc73cecad2 (diff)
mpfr-4.0.0
git-svn-id: svn://tug.org/texlive/trunk@46140 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c')
-rw-r--r--Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c b/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
index ad8f0c06854..7fe27c292f3 100644
--- a/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
+++ b/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
@@ -32,15 +32,13 @@ mpfr_zeta_ui (mpfr_ptr z, unsigned long m, mpfr_rnd_t r)
(("m=%lu rnd=%d prec=%Pu", m, r, mpfr_get_prec (z)),
("z[%Pu]=%.*Rg", mpfr_get_prec (z), mpfr_log_prec, z));
- if (m == 0)
- {
- return mpfr_set_si_2exp (z, -1, -1, r);
- }
+ if (m == 0) /* zeta(0) = -1/2 */
+ return mpfr_set_si_2exp (z, -1, -1, r);
else if (m == 1)
{
MPFR_SET_INF (z);
MPFR_SET_POS (z);
- mpfr_set_divby0 ();
+ MPFR_SET_DIVBY0 ();
return 0;
}
else /* m >= 2 */