Skip to content

adding aligner to BigInt #1062

@yoaveshel

Description

@yoaveshel

For our project we need the BigInt type to have a certain alignment. Would you consider modifying the struct definition to be something like

#[derive(Copy, Clone, PartialEq, Eq, Hash)]
#[must_use]
#[repr(C)]
pub struct BigInt<A, const N: usize>{
    // BigInt is aligned to (at least) A
    _aligner: [A; 0],
    data: [u64; N]
}

If yes, I can make the changes and open a PR

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