Guest User

Untitled

a guest
Oct 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.             factor = (factor > 1) ? factor : 1;
  2.                    
  3.                     if (factor > 1)
  4.                     {
  5.                         if ((factor & (factor-1)) != 0)
  6.                         {
  7.                                 while ((factor & (factor-1)) != 0)
  8.                                         factor &= factor-1;
  9.                                
  10.                                 factor <<= 1;
  11.                         }
  12.                     }
Add Comment
Please, Sign In to add comment