[libre-riscv-dev] [Bug 173] dynamic partitioned "shift"

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Thu Feb 13 18:26:04 GMT 2020


http://bugs.libre-riscv.org/show_bug.cgi?id=173

--- Comment #16 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
so it looks like you go:

* start with ~p0&~p1&~p2&~p3...&~pN, and start with M=0
* select aNbM and OR that into the output, then increment M by 1
* take the front of the AND-chain, remove the invert on the FIRST item
  (~p0 becomes p0)
* select aNbM and OR that into the output, then increment M by 1 more
* DROP the front of the AND-chain (p0 on the first iteration)
* repeat until you get down to a list of only one item, this should
  be when M=max: drop the invert and select aNbM.

am i making any sense? :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list