I found what was causing the off-result for me; if you do: 128 / 3 (2 int's) in C# it will truncate to int; if you do 128 / 3.0 you'll get the expected output and everything starts to make sense :)
Also, taking the 2log and then 2power is a no-op because it doesn't truncate / ceiling in-between the two.
You kind of see where the code was going to, but it never quite made it there.