[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/sodium_compat/src/Core32/ -> Int64.php (summary)

(no description)

File Size: 1066 lines (31 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ParagonIE_Sodium_Core32_Int64:: (33 methods):
  __construct()
  addInt64()
  addInt()
  compareInt()
  isGreaterThan()
  isLessThanInt()
  mask64()
  mulInt()
  ctSelect()
  multiplyLong()
  mulIntFast()
  mulInt64Fast()
  mulInt64()
  orInt64()
  rotateLeft()
  rotateRight()
  shiftLeft()
  shiftRight()
  subInt()
  subInt64()
  xorInt64()
  fromInts()
  fromInt()
  toInt()
  fromString()
  fromReverseString()
  toArray()
  toInt32()
  toInt64()
  setUnsignedInt()
  toString()
  toReverseString()
  __toString()


Class: ParagonIE_Sodium_Core32_Int64  - X-Ref

Class ParagonIE_Sodium_Core32_Int64

Encapsulates a 64-bit integer.

These are immutable. It always returns a new instance.
__construct($array = array(0, 0, 0, 0)   X-Ref
ParagonIE_Sodium_Core32_Int64 constructor.

param: array $array
param: bool $unsignedInt

addInt64(ParagonIE_Sodium_Core32_Int64 $addend)   X-Ref
Adds two int64 objects

param: ParagonIE_Sodium_Core32_Int64 $addend
return: ParagonIE_Sodium_Core32_Int64

addInt($int)   X-Ref
Adds a normal integer to an int64 object

param: int $int
return: ParagonIE_Sodium_Core32_Int64

compareInt($b = 0)   X-Ref

param: int $b
return: int

isGreaterThan($b = 0)   X-Ref

param: int $b
return: bool

isLessThanInt($b = 0)   X-Ref

param: int $b
return: bool

mask64($hi = 0, $lo = 0)   X-Ref

param: int $hi
param: int $lo
return: ParagonIE_Sodium_Core32_Int64

mulInt($int = 0, $size = 0)   X-Ref

param: int $int
param: int $size
return: ParagonIE_Sodium_Core32_Int64

ctSelect(ParagonIE_Sodium_Core32_Int64 $A,ParagonIE_Sodium_Core32_Int64 $B)   X-Ref

param: ParagonIE_Sodium_Core32_Int64 $A
param: ParagonIE_Sodium_Core32_Int64 $B
return: array<int, ParagonIE_Sodium_Core32_Int64>

multiplyLong(array $a, array $b, $baseLog2 = 16)   X-Ref

param: array<int, int> $a
param: array<int, int> $b
param: int $baseLog2
return: array<int, int>

mulIntFast($int)   X-Ref

param: int $int
return: ParagonIE_Sodium_Core32_Int64

mulInt64Fast(ParagonIE_Sodium_Core32_Int64 $right)   X-Ref

param: ParagonIE_Sodium_Core32_Int64 $right
return: ParagonIE_Sodium_Core32_Int64

mulInt64(ParagonIE_Sodium_Core32_Int64 $int, $size = 0)   X-Ref

param: ParagonIE_Sodium_Core32_Int64 $int
param: int $size
return: ParagonIE_Sodium_Core32_Int64

orInt64(ParagonIE_Sodium_Core32_Int64 $b)   X-Ref
OR this 64-bit integer with another.

param: ParagonIE_Sodium_Core32_Int64 $b
return: ParagonIE_Sodium_Core32_Int64

rotateLeft($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int64

rotateRight($c = 0)   X-Ref
Rotate to the right

param: int $c
return: ParagonIE_Sodium_Core32_Int64

shiftLeft($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int64

shiftRight($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int64

subInt($int)   X-Ref
Subtract a normal integer from an int64 object.

param: int $int
return: ParagonIE_Sodium_Core32_Int64

subInt64(ParagonIE_Sodium_Core32_Int64 $b)   X-Ref
The difference between two Int64 objects.

param: ParagonIE_Sodium_Core32_Int64 $b
return: ParagonIE_Sodium_Core32_Int64

xorInt64(ParagonIE_Sodium_Core32_Int64 $b)   X-Ref
XOR this 64-bit integer with another.

param: ParagonIE_Sodium_Core32_Int64 $b
return: ParagonIE_Sodium_Core32_Int64

fromInts($low, $high)   X-Ref

param: int $low
param: int $high
return: self

fromInt($low)   X-Ref

param: int $low
return: self

toInt()   X-Ref

return: int

fromString($string)   X-Ref

param: string $string
return: self

fromReverseString($string)   X-Ref

param: string $string
return: self

toArray()   X-Ref

return: array<int, int>

toInt32()   X-Ref

return: ParagonIE_Sodium_Core32_Int32

toInt64()   X-Ref

return: ParagonIE_Sodium_Core32_Int64

setUnsignedInt($bool = false)   X-Ref

param: bool $bool
return: self

toString()   X-Ref

return: string

toReverseString()   X-Ref

return: string

__toString()   X-Ref

return: string



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref