Skip to content

SRFI 144 (scheme flonum) -- should add a symbol to features. #829

@jpellegrini

Description

@jpellegrini

According to the SRFI text, the constant fl-fast-fl+* is:

Bound to #t if (fl+* x y z) executes about as fast as, or faster than, (fl+ (fl* x y) z); bound to #f otherwise. (C99 FP_FAST_FMA).

So that the value of this variable can be determined at compile time, R7RS implementations and other implementations that provide a features function should provide the feature fl-fast-fl+* if this variable is true, and not if it is false or the value is unknown at compile time.

OK, that's easy to fix. But there is one question: should the symbol fl-fast-fl+* be added to features at boot, or only after the SRFI is loaded? (In some contexts the SRFI may not be loadable at all -- for example, an installation in a small device where only a few libraries are included).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions