ParagonIE_Sodium_Core32_Int32::compareInt() public WP 1.0
{} Это метод класса: ParagonIE_Sodium_Core32_Int32{}
Хуков нет.
Возвращает
Число
. Null. Ничего.
Использование
$ParagonIE_Sodium_Core32_Int32 = new ParagonIE_Sodium_Core32_Int32(); $ParagonIE_Sodium_Core32_Int32->compareInt( $b );
- $b(число)
- -
Код ParagonIE_Sodium_Core32_Int32::compareInt() ParagonIE Sodium Core32 Int32::compareInt WP 5.7
public function compareInt($b = 0)
{
$gt = 0;
$eq = 1;
$i = 2;
$j = 0;
while ($i > 0) {
--$i;
/** @var int $x1 */
$x1 = $this->limbs[$i];
/** @var int $x2 */
$x2 = ($b >> ($j << 4)) & 0xffff;
/** @var int $gt */
$gt |= (($x2 - $x1) >> 8) & $eq;
/** @var int $eq */
$eq &= (($x2 ^ $x1) - 1) >> 8;
}
return ($gt + $gt - $eq) + 1;
}