Count leading zero/trailing zero in BITSET

Revision en2, by nonrice, 2024-02-09 00:16:51

How may I perform such operation on bitset, taking advantage of bitset speedup?

It is quite frustrating because such a thing is trivial to implement for a bitset, but designer of std::bitset interface does not allow so.

Tags bitset, optimization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English nonrice 2024-02-09 00:16:51 143
en1 English nonrice 2024-02-09 00:10:28 121 Initial revision (published)