[Top][All Lists]

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

c99 number funcs

From: Kevin Ryde
Subject: c99 number funcs
Date: Thu, 12 Jun 2003 11:09:11 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

This is a small change to make use of c99 math functions when
available, for instance in recent glibc.

There shouldn't be much difference, though there's probably a good
chance of getting higher accuracy or range from the library asinh etc
than from an equivalent expression.

Removing the private isfinite is a good thing on its own, don't want
to have problems on a c99 system.

        * (AC_CHECK_FUNCS): Add asinh, acosh, atanh, round, trunc.

        * numbers.c (_GNU_SOURCE): #define, to get C99 things.
        (scm_asinh, scm_acosh, scm_atanh, scm_truncate, scm_round, $asinh,
        $acosh, $atanh, truncate, round): Use C library asinh, acosh, atanh,
        trunc and round, when available.
        (scm_inexact_to_exact): Expand isfinite to its definition !isinf.
        (isfinite): Remove, conflicts with C99 isfinite().

        * tests/numbers.test (trunc, round, asinh, acosh, atanh): Add some

Description: Text document

Attachment: numbers.c.c99.diff
Description: Text document

Attachment: numbers.test.c99.diff
Description: Text document

reply via email to

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