Skip to content

Change fp_model's mulreduce to not check limbsize in run-time #74

Open
@ValarDragon

Description

@ValarDragon

The multiplication function in a finite field currently checks in runtime what the limb size is, when its instead known at compile time as its a template parameter.

Line where we check this:

I don't know if this is optimized out by the compiler on all platforms, but if it isn't this is potentially quite bad for the instruction cache (in addition to slight overhead due to the branch-predicted conditional)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions