Git Product home page Git Product logo

positional-popcount's People

Contributors

aqrit avatar lemire avatar mklarqvist avatar wojciechmula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

positional-popcount's Issues

Discussion

I'm thinking about doing a rewrite, here are some random thoughts:

  1. pospopcnt_csa_sse() implies two unnecessary temp variables. It could be rewritten as:
    b ^= a;
    a ^= c;
    c ^= b; // xor sum
    b |= a;
    b ^= c; // carry

  2. The throughput of a CSA is better than its latency. So it is probably best to keep two independent CSAs executing in parallel. Specifically, passing v1 as a [in/out] parameter
    to every bottom tier CSA may create a serial dependency.

  3. At least two passes through the CSA Unit are required for the CSA Unit to pay for itself.
    So we may be able to better space loads inside the loop body...
    If we process half a loop, before before initially dropping into the loop body, then we can spend the back half of the loop pre-loading for the next pass.

  4. Assuming two loads per cycle on AVX2 machines… It may be better to trade out instructions for more i/o? Maybe spill the output of the CSA Unit into a buffer, then we could go back and do another --or several more-- passes of 16:1 reductions before accumulating.

MinGW problems

The latest commit broke build on MinGW, but it seems to be some compiler-related problem: "Error: invalid register for .seh_savexmm".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.