Skip to content

floating-point sum and product produce incorrect results when NaNs are present #6

@gnzlbg

Description

@gnzlbg

Due to https://bugs.llvm.org/show_bug.cgi?id=36732, wrapping_sum / wrapping_product are implemented with fast-math flags unconditionally enabled, which results in inconsistencies like them returning a NaN for which the nan.is_nan() method returns false...

We'll probably need to work-around these issues here in stdsimd.


Now that LLVM7 has been merged we should be able to disable the fast math flags in rust-lang/rust to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnsoundSomething breaks Rust safety guarantees

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions