Bit twiddling

Joel Reymont joelr1@REDACTED
Thu Mar 31 16:39:24 CEST 2005


Folks,

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

-- 
http://wagerlabs.com/tech





More information about the erlang-questions mailing list