Counting bits in a ulong

sebasg bcs6wg3tvw at 4dh24.anonbox.net
Sat Jun 6 04:19:44 UTC 2020


On Friday, 5 June 2020 at 19:12:43 UTC, ttk wrote:
> Source is here .. a bit large, since I manually unrolled loops 
> 100x to minimize the impact of looping logic (particularly the 
> now() call):
>
> http://ciar.org/h/popcount.d

Jesus. Shouldn't you be able to generate that instead of
copy-pasting? It's D, after all.


More information about the Digitalmars-d mailing list