WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Curve25519::fe_isnegative() public WP 1.0

Is a field element negative? (1 = yes, 0 = no. Used in calculations.)

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

No Hooks.

Return

Int. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::fe_isnegative( $f );
$f(ParagonIE_Sodium_Core_Curve25519_Fe) (required)
-

Code of ParagonIE_Sodium_Core_Curve25519::fe_isnegative() WP 5.7.1

<?php
public static function fe_isnegative(ParagonIE_Sodium_Core_Curve25519_Fe $f)
{
    $str = self::fe_tobytes($f);
    return (int) (self::chrToInt($str[0]) & 1);
}