Skip to content

How should we handle fenv? #480

Open
@tgross35

Description

@tgross35

I am not entirely sure how we should or shouldn't be handling and testing fenv. It would be nice to comply with what the C specification says, but on the other hand I am unsure if it makes much sense considering RFC3514 says Rust does not support fenv and, as I understand it, LLVM still does not fully support it (though my information may be out of date here).

On one hand it would be nice to just remove everything that handles rounding modes and exceptions in order to keep code cleaner. On the other hand we are beginning to port some high quality algorithms that do correctly handle rounding modes, so I am leaning toward figuring out some way to test this for specific routines rather than discarding valuable code. In any case, I just don't want to keep the relevant handling around if it remains untested. Ignoring rounding modes but keeping exceptions is also an option since that should be easier to test.

Anyway, I don't have any strong opinions here so I am opening this issue to see what others think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions