8000 use libdivide to make integer division faster · Issue #14959 · numpy/numpy · GitHub 8000
[go: up one dir, main page]

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0