1 comments

  • neerajsi23 minutes ago
    I was curious about whether one of the count bits instructions can help. Of course I&#x27;m lazy now and asked an llm to check... The llm noticed that the articles solution includes a floating point subtract in the end. This is fine since the target is wasm which has fsub&#x2F;fadd, but was initially odd to see in a floating point emulator.<p>Apparently a solution is a bit longer, but doesn&#x27;t cross from the floating to integer domain at all, so might be better in the overall algorithm. There are hidden implicit floating to int convert instructions.<p>This was a really cool little problem!