[fpc-pascal] Bitcounting

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Mar 5 19:20:32 CET 2016


On 05/03/16 19:03, Bart wrote:
> Does FreePascal have a routine for counting bits?
> So that e.g. BitCount(%1001100100001) gives 5 (number of bits that are 1)?

FPC 3.x has system.popcnt


Jonas



More information about the fpc-pascal mailing list