summaryrefslogtreecommitdiff
path: root/mpz/tdiv_r.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-23 23:21:13 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-23 23:21:13 +0200
commitae7cbcdb411f86c4e11e4c3da21a4968b97f2858 (patch)
treee34aba63c1746bf8e84c46f43ba3f16fc5f0cb5e /mpz/tdiv_r.c
parent9a031234bde3abdee5de779604feab6e30abb0fb (diff)
downloadgmp-ae7cbcdb411f86c4e11e4c3da21a4968b97f2858.tar.gz
Mark failing branches with UNLIKELY.
Diffstat (limited to 'mpz/tdiv_r.c')
-rw-r--r--mpz/tdiv_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/tdiv_r.c b/mpz/tdiv_r.c
index a3b008c5e..0b013f4fe 100644
--- a/mpz/tdiv_r.c
+++ b/mpz/tdiv_r.c
@@ -35,7 +35,7 @@ mpz_tdiv_r (mpz_ptr rem, mpz_srcptr num, mpz_srcptr den)
dl = ABS (ds);
ql = nl - dl + 1;
- if (dl == 0)
+ if (UNLIKELY (dl == 0))
DIVIDE_BY_ZERO;
MPZ_REALLOC (rem, dl);