Skip to content

Struct equality doesn't use FP equality #83

Description

@zimri-leisher

Floating point equality is not bitwise equality, because NaN is not equal to anything, even itself. So comparing two floats must use a special directive.
However, if the floats are in a struct, then the compiler generates a MEMCMP directive, which compares bitwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions