Merge "libgui: avoid allocations for bit manip" into main