Skip to content

float4x4 columns in f32.h and f64.h are defined as v4f/v4d for __GNUC__, breaking comparisons to float4/double4 #8

@ommaury

Description

@ommaury

Hi,

In f32.h line 846:

union float4x4 {
#if defined(__GNUC__)
    struct {
        v4f col0;
        v4f col1;
        v4f col2;
        v4f col3;
    };
#else
    struct {
        float4 col0;
        float4 col1;
        float4 col2;
        float4 col3;
    };
#endif

And in f64.h line 850:

union double4x4 {
#if defined(__GNUC__)
    struct {
        v4d col0;
        v4d col1;
        v4d col2;
        v4d col3;
    };
#else
    struct {
        double4 col0;
        double4 col1;
        double4 col2;
        double4 col3;
    };
#endif

This breaks all comparisons to float4/double4 when __GNUC__ is defined. Should the special case be removed?

Thanks,
Olivier

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