guile-devel
[Top][All Lists]
Advanced

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

mpz_cmp_d and infs


From: Kevin Ryde
Subject: mpz_cmp_d and infs
Date: Sat, 10 May 2003 14:00:24 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

A concrete proposal for handling infs with mpz_cmp_d, as previously
mentioned.

        * numbers.c (xmpz_cmp_d): New macro, handling infs if gmp doesn't.
        (scm_num_eq_p, scm_less_p, scm_max, scm_min): Use it.

        * tests/numbers.test (=, <, max, min): Add tests of bignum/inf
        combinations.

Attachment: numbers.c.cmp_d-inf.diff
Description: Text document

Attachment: numbers.test.cmp_d-inf.diff
Description: Text document


reply via email to

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