Welcome to MSDN Blogs Sign in | Join | Help

System.Blog.Martens.Ben

The Tech Blog of Ben Martens

April 2008 - Posts

Brain Teaser #2
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...
Page view tracker