Fermat Numbers and Bit Mask
There is a little known application of Fermat numbers for generating bit masks, that I discovered back in 2010 while implementing " counting the number of one bits " using C++ template meta-programming. In the algorithm, bit masks such as 0x55555555 , 0x333...
Shared publicly