Skip to content

use libdivide to make integer division faster #14959

@msalib

Description

@msalib

Right now, integer division uses the standard division instructions, but libdivide, a header-only C library, allows you to replace integer division with integer multiplication and a bitshift. On my machine, that's about 5x faster.

Alternatively, it would be good if integer division by a power of 2 (and maybe multiplication too?) were implemented with bitshifts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions