Documentation

BitUtils
in package

General bit utilities.

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

Table of Contents

numberOfTrailingZeros()  : int
Gets the number of trailing zeros.
unsignedRightShift()  : int
Performs an unsigned right shift.
__construct()  : mixed

Methods

numberOfTrailingZeros()

Gets the number of trailing zeros.

public static numberOfTrailingZeros(int $i) : int
Parameters
$i : int
Return values
int

unsignedRightShift()

Performs an unsigned right shift.

public static unsignedRightShift(int $a, int $b) : int

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

Parameters
$a : int
$b : int
Return values
int

__construct()

private __construct() : mixed
Return values
mixed

Search results