bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gmp 4.1: assert triggered in test t-cong on alphaev6-dec-osf4.0e


From: Kevin Ryde
Subject: Re: gmp 4.1: assert triggered in test t-cong on alphaev6-dec-osf4.0e
Date: Sat, 02 Nov 2002 08:39:17 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

Christoph Ludwig <address@hidden> writes:
>
>   mode1o.c:108: GNU MP assertion failed: c < d

Thanks.

I think the code is ok, but the asserts are bogus.  When the initial c
is c>=d, the return value is only <=d not <d (see comments in
mpn/generic/mode1o.c).

So I think you can either delete that assert (maybe the "x < d" one
too, have to think about that), or change them to "<=".  The same for
mpn/generic/mode1o.c I suspect.

--enable-assert does get used regularly, but usually only in 32-bits.
Not sure why the problem only shows up in 64 bits.  Have to add more
test cases :-).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]