| 1 | Initialize result=0 | 00000000000000000000000000001011 | - | 00000000000000000000000000000000 | result=0, n=11 (decimal) |
| 2 | Extract last bit (n & 1) | 00000000000000000000000000001011 | 1 | 00000000000000000000000000000001 | result=1 after shift and add bit 1 |
| 3 | Shift n right (n >>>= 1) | 00000000000000000000000000000101 | - | 00000000000000000000000000000001 | n=5 |
| 4 | Extract last bit (n & 1) | 00000000000000000000000000000101 | 1 | 00000000000000000000000000000011 | result=3 after shift and add bit 1 |
| 5 | Shift n right (n >>>= 1) | 00000000000000000000000000000010 | - | 00000000000000000000000000000011 | n=2 |
| 6 | Extract last bit (n & 1) | 00000000000000000000000000000010 | 0 | 00000000000000000000000000000110 | result=6 after shift and add bit 0 |
| 7 | Shift n right (n >>>= 1) | 00000000000000000000000000000001 | - | 00000000000000000000000000000110 | n=1 |
| 8 | Extract last bit (n & 1) | 00000000000000000000000000000001 | 1 | 00000000000000000000000000001101 | result=13 after shift and add bit 1 |
| 9 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000000001101 | n=0 |
| 10 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000000000011010 | result=26 after shift and add bit 0 |
| 11 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000000011010 | n=0 |
| 12 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000000000110100 | result=52 after shift and add bit 0 |
| 13 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000000110100 | n=0 |
| 14 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000000001101000 | result=104 after shift and add bit 0 |
| 15 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000001101000 | n=0 |
| 16 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000000011010000 | result=208 after shift and add bit 0 |
| 17 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000011010000 | n=0 |
| 18 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000000110100000 | result=416 after shift and add bit 0 |
| 19 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000000110100000 | n=0 |
| 20 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000001101000000 | result=832 after shift and add bit 0 |
| 21 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000001101000000 | n=0 |
| 22 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000011010000000 | result=1664 after shift and add bit 0 |
| 23 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000011010000000 | n=0 |
| 24 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000000110100000000 | result=3328 after shift and add bit 0 |
| 25 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000000110100000000 | n=0 |
| 26 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000001101000000000 | result=6656 after shift and add bit 0 |
| 27 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000001101000000000 | n=0 |
| 28 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000011010000000000 | result=13312 after shift and add bit 0 |
| 29 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000011010000000000 | n=0 |
| 30 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000000110100000000000 | result=26624 after shift and add bit 0 |
| 31 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000000110100000000000 | n=0 |
| 32 | Extract last bit (n & 1) | 00000000000000000000000000000000 | 0 | 00000000000000001101000000000000 | result=53248 after shift and add bit 0 |
| 33 | Shift n right (n >>>= 1) | 00000000000000000000000000000000 | - | 00000000000000001101000000000000 | n=0 |
| 34 | End of loop | - | - | 00000000000000001101000000000000 | Return result = 53248 (decimal) |