Skip to content

Reduce stack usage for AES calls #24

@th-otto

Description

@th-otto

We already implemented the udef_* functions for some VDI functions that otherwise use too much stack space, but for AES the situation is similar. Currently the four arrays are always declared with their maximum size (16 each), which amounts to a total of 192 bytes.

I'm therefore currently experimenting with the attached patch. It also has the benefit that you automatically get warnings when eg. specifying 2 intin parameters in the macro, but then writing 3 values to the array.

What do you think?

PS.: is there a reason why github rejects attaching *.patch files?

aesp.patch.txt

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