Skip to content

Possible unneeded packing of structs #973

@th-otto

Description

@th-otto

There are some structures like

typedef struct BITFIELD_STRUCT
that are declared with pack(1) and also attribute((ms_struct)) However, since they also contain pointers, they are certainly not used anywhere where files and/or network data is accessed. Declaring it in the current way causes inefficient code to be used on architectures that don't allow unaligned accesses, and also slows down accesses to the member on architectures that allow it.

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