Comments on: Nearest power of two http://www.cognitive-antics.net/2013/03/09/749/ Mon, 11 Mar 2013 20:34:54 +0000 hourly 1 https://wordpress.org/?v=6.1.6 By: Kevin Lawler http://www.cognitive-antics.net/2013/03/09/749/#comment-4 Mon, 11 Mar 2013 20:34:54 +0000 http://www.cognitive-antics.net/?p=749#comment-4 You deserve credit for the second method. This is a non-trivial rewrite which, as you note, also optimizes into branchless code.

]]>