List Info

Thread: Improvement of assert in longlong.h




Improvement of assert in longlong.h
user name
2007-03-30 10:35:03
Dear GMP folks,

I have recently looked into GMP's longlong.h, specifically
the function __udiv_qrnnd_c.

It appears to me the assert in line 1738 of Version 4.2.1
should be changed from

    ASSERT ((d) != 0);

into

    ASSERT ((d) >= __ll_B);

so that the resulting d1 will be nonzero.


Best regards,

Claus Fischer

-- 
Claus Fischer <claus.fischerclausfischer.com>
http://www.clausfischer.
com/
_______________________________________________
gmp-discuss mailing list
gmp-discussswox.com
http://s
wox.com/mailman/listinfo/gmp-discuss

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )