Skip to content

Wrong alignment on vectors #3190

Open
Open
@ilcheese2

Description

@ilcheese2

Since vectors are defined with type aliases they have an incorrect alignment.

For example this has an alignment of 8

typedef float float2 __attribute__((vector_size(2 * sizeof(float))));

The generated bindgen code is

pub type float2 = [f32; 2usize];

which has an alignment of 4 instead of the expected 8.

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