[Libre-soc-bugs] [Bug 865] implement vector bitmanip opcodes

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jun 22 11:52:27 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=865

--- Comment #3 from Jacob Lifshay <programmerjake at gmail.com> ---
we'll also want shifting by 1 bit to cover finding up to and
including/excluding lowest set bit.

x ^ (x - 1) => set up to lowest set bit inclusive
(x ^ (x - 1)) >> 1 => set up to lowest set bit exclusive

we'll also want the option to bit-reverse both input and output so we can do
first set msb rather than first set lsb.

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


More information about the libre-soc-bugs mailing list