WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Curve25519::negative() public WP 1.0

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

No Hooks.

Return

Int. (1 = yes, 0 = no)

Usage

$result = ParagonIE_Sodium_Core_Curve25519::negative( $char );
$char *(int string) (required)*

Code of ParagonIE_Sodium_Core_Curve25519::negative() WP 5.8.2

public static function negative($char)
{
    if (is_int($char)) {
        return ($char >> 63) & 1;
    }
    $x = self::chrToInt(self::substr($char, 0, 1));
    return (int) ($x >> 63);
}