Bit twiddling

Joel Reymont <>
Thu Mar 31 16:39:24 CEST 2005


What's the most effective way to do bit twiddling in Erlang? 

Should I convert the int into a list of bits? How would I efficiently do this?

I'm looking to figure out the highest and lowest bit set in an integer as
well as count the number of bits set.

    Thanks, Joel


More information about the erlang-questions mailing list