2021年1月1日星期五

Efficient way to get all matching bitmasks?

Lets say I have some patterns as 64 bits integers. Given a 64 integer n how to list all patterns matching n efficiently?

More precisely I am interested in this set: {pi in patterns such as (n & pi) == pi}

Thanks for your help

https://stackoverflow.com/questions/65534055/efficient-way-to-get-all-matching-bitmasks January 02, 2021 at 05:59AM

没有评论:

发表评论