| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 136 | protected function binaryReverse(int $binaryInput, int $bitlen): int |
||
| 137 | { |
||
| 138 | $cloneBits = $binaryInput; |
||
| 139 | $binaryInput = 0; |
||
| 140 | $count = 0; |
||
| 141 | |||
| 142 | while ($count < $bitlen) { |
||
| 143 | ++$count; |
||
| 144 | $binaryInput <<= 1; |
||
| 145 | $binaryInput |= ($cloneBits & 0x1); |
||
| 146 | $cloneBits >>= 1; |
||
| 147 | } |
||
| 148 | |||
| 149 | return $binaryInput; |
||
| 150 | } |
||
| 152 |