fork download
  1. import std.stdio;
  2. import core.bitop;
  3.  
  4. void main()
  5. {
  6. writefln("bitcount = %s", popcnt(100));
  7. }
  8.  
Success #stdin #stdout 0s 2688KB
stdin
Standard input is empty
stdout
bitcount = 3