\BaconQrCode\CommonBitUtils

General bit utilities.

All utility methods are based on 32-bit integers and also work on 64-bit systems.

Summary

Methods
Properties
Constants
unsignedRightShift()
numberOfTrailingZeros()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

unsignedRightShift()

unsignedRightShift(integer  $a, integer  $b) : integer

Performs an unsigned right shift.

This is the same as the unsigned right shift operator ">>>" in other languages.

Parameters

integer $a
integer $b

Returns

integer

numberOfTrailingZeros()

numberOfTrailingZeros(integer  $i) : integer

Gets the number of trailing zeros.

Parameters

integer $i

Returns

integer