This brain teaser comes courtesy of a co-worker named Simeon Cran. Using C# and no branches, and no method calls , no allocations, and no unsafe code , write a method that takes a ulong and clears all the bits in it except the highest bit that was set.
Read More...