WordPress at a glance
function is not described

ParagonIE_Sodium_Core32_Int32::compareInt() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core32_Int32{}

No Hooks.

Return

Int. Null. Nothing.

Usage

$ParagonIE_Sodium_Core32_Int32 = new ParagonIE_Sodium_Core32_Int32();
$ParagonIE_Sodium_Core32_Int32->compareInt( $b );
$b(int)
-

Code of ParagonIE_Sodium_Core32_Int32::compareInt() WP 5.7

<?php
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;
}