Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.math.bits
  • Platforms: .NET, .NET Standard 2.0, Island

 

Add

 

class method Add(x: uint; y: uint; carry: uint): tuple of (sum: UInt64, carryOut: UInt64)

 

static (UInt64 sum, UInt64 carryOut) Add(uint x, uint y, uint carry)

 

static func Add(_ x: uint, _ y: uint, _ carry: uint) -> (UInt64, UInt64)

 

func Add(x uint, y uint, carry uint) tuple of (|name=sum| UInt64, |name=carryOut| UInt64)

 

Shared Function Add(x As uint, y As uint, carry As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:
  • carry:

Add32

 

class method Add32(x: uint32; y: uint32; carry: uint32): tuple of (sum: UInt32, carryOut: UInt32)

 

static (UInt32 sum, UInt32 carryOut) Add32(uint32 x, uint32 y, uint32 carry)

 

static func Add32(_ x: uint32, _ y: uint32, _ carry: uint32) -> (UInt32, UInt32)

 

func Add32(x uint32, y uint32, carry uint32) tuple of (|name=sum| UInt32, |name=carryOut| UInt32)

 

Shared Function Add32(x As uint32, y As uint32, carry As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:
  • carry:

Add64

 

class method Add64(x: uint64; y: uint64; carry: uint64): tuple of (sum: uint64, carryOut: uint64)

 

static (uint64 sum, uint64 carryOut) Add64(uint64 x, uint64 y, uint64 carry)

 

static func Add64(_ x: uint64, _ y: uint64, _ carry: uint64) -> (uint64, uint64)

 

func Add64(x uint64, y uint64, carry uint64) tuple of (|name=sum| uint64, |name=carryOut| uint64)

 

Shared Function Add64(x As uint64, y As uint64, carry As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:
  • carry:

Div

 

class method Div(hi: uint; lo: uint; y: uint): tuple of (quo: UInt64, rem: UInt64)

 

static (UInt64 quo, UInt64 rem) Div(uint hi, uint lo, uint y)

 

static func Div(_ hi: uint, _ lo: uint, _ y: uint) -> (UInt64, UInt64)

 

func Div(hi uint, lo uint, y uint) tuple of (|name=quo| UInt64, |name=rem| UInt64)

 

Shared Function Div(hi As uint, lo As uint, y As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • hi:
  • lo:
  • y:

Div32

 

class method Div32(hi: uint32; lo: uint32; y: uint32): tuple of (quo: UInt32, rem: UInt32)

 

static (UInt32 quo, UInt32 rem) Div32(uint32 hi, uint32 lo, uint32 y)

 

static func Div32(_ hi: uint32, _ lo: uint32, _ y: uint32) -> (UInt32, UInt32)

 

func Div32(hi uint32, lo uint32, y uint32) tuple of (|name=quo| UInt32, |name=rem| UInt32)

 

Shared Function Div32(hi As uint32, lo As uint32, y As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • hi:
  • lo:
  • y:

Div64

 

class method Div64(hi: uint64; lo: uint64; y: uint64): tuple of (quo: uint64, rem: uint64)

 

static (uint64 quo, uint64 rem) Div64(uint64 hi, uint64 lo, uint64 y)

 

static func Div64(_ hi: uint64, _ lo: uint64, _ y: uint64) -> (uint64, uint64)

 

func Div64(hi uint64, lo uint64, y uint64) tuple of (|name=quo| uint64, |name=rem| uint64)

 

Shared Function Div64(hi As uint64, lo As uint64, y As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • hi:
  • lo:
  • y:

LeadingZeros

 

class method LeadingZeros(x: uint): int

 

static int LeadingZeros(uint x)

 

static func LeadingZeros(_ x: uint) -> int

 

func LeadingZeros(x uint) int

 

Shared Function LeadingZeros(x As uint) As int

Parameters:

  • x:

LeadingZeros16

 

class method LeadingZeros16(x: uint16): int

 

static int LeadingZeros16(uint16 x)

 

static func LeadingZeros16(_ x: uint16) -> int

 

func LeadingZeros16(x uint16) int

 

Shared Function LeadingZeros16(x As uint16) As int

Parameters:

  • x:

LeadingZeros32

 

class method LeadingZeros32(x: uint32): int

 

static int LeadingZeros32(uint32 x)

 

static func LeadingZeros32(_ x: uint32) -> int

 

func LeadingZeros32(x uint32) int

 

Shared Function LeadingZeros32(x As uint32) As int

Parameters:

  • x:

LeadingZeros64

 

class method LeadingZeros64(x: uint64): int

 

static int LeadingZeros64(uint64 x)

 

static func LeadingZeros64(_ x: uint64) -> int

 

func LeadingZeros64(x uint64) int

 

Shared Function LeadingZeros64(x As uint64) As int

Parameters:

  • x:

LeadingZeros8

 

class method LeadingZeros8(x: uint8): int

 

static int LeadingZeros8(uint8 x)

 

static func LeadingZeros8(_ x: uint8) -> int

 

func LeadingZeros8(x uint8) int

 

Shared Function LeadingZeros8(x As uint8) As int

Parameters:

  • x:

Len

 

class method Len(x: uint): int

 

static int Len(uint x)

 

static func Len(_ x: uint) -> int

 

func Len(x uint) int

 

Shared Function Len(x As uint) As int

Parameters:

  • x:

Len16

 

class method Len16(x: uint16): int

 

static int Len16(uint16 x)

 

static func Len16(_ x: uint16) -> int

 

func Len16(x uint16) int

 

Shared Function Len16(x As uint16) As int

Parameters:

  • x:

Len32

 

class method Len32(x: uint32): int

 

static int Len32(uint32 x)

 

static func Len32(_ x: uint32) -> int

 

func Len32(x uint32) int

 

Shared Function Len32(x As uint32) As int

Parameters:

  • x:

Len64

 

class method Len64(x: uint64): int

 

static int Len64(uint64 x)

 

static func Len64(_ x: uint64) -> int

 

func Len64(x uint64) int

 

Shared Function Len64(x As uint64) As int

Parameters:

  • x:

Len8

 

class method Len8(x: uint8): int

 

static int Len8(uint8 x)

 

static func Len8(_ x: uint8) -> int

 

func Len8(x uint8) int

 

Shared Function Len8(x As uint8) As int

Parameters:

  • x:

Mul

 

class method Mul(x: uint; y: uint): tuple of (hi: UInt64, lo: UInt64)

 

static (UInt64 hi, UInt64 lo) Mul(uint x, uint y)

 

static func Mul(_ x: uint, _ y: uint) -> (UInt64, UInt64)

 

func Mul(x uint, y uint) tuple of (|name=hi| UInt64, |name=lo| UInt64)

 

Shared Function Mul(x As uint, y As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:

Mul32

 

class method Mul32(x: uint32; y: uint32): tuple of (hi: UInt32, lo: UInt32)

 

static (UInt32 hi, UInt32 lo) Mul32(uint32 x, uint32 y)

 

static func Mul32(_ x: uint32, _ y: uint32) -> (UInt32, UInt32)

 

func Mul32(x uint32, y uint32) tuple of (|name=hi| UInt32, |name=lo| UInt32)

 

Shared Function Mul32(x As uint32, y As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:

Mul64

 

class method Mul64(x: uint64; y: uint64): tuple of (hi: uint64, lo: uint64)

 

static (uint64 hi, uint64 lo) Mul64(uint64 x, uint64 y)

 

static func Mul64(_ x: uint64, _ y: uint64) -> (uint64, uint64)

 

func Mul64(x uint64, y uint64) tuple of (|name=hi| uint64, |name=lo| uint64)

 

Shared Function Mul64(x As uint64, y As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:

OnesCount

 

class method OnesCount(x: uint): int

 

static int OnesCount(uint x)

 

static func OnesCount(_ x: uint) -> int

 

func OnesCount(x uint) int

 

Shared Function OnesCount(x As uint) As int

Parameters:

  • x:

OnesCount16

 

class method OnesCount16(x: uint16): int

 

static int OnesCount16(uint16 x)

 

static func OnesCount16(_ x: uint16) -> int

 

func OnesCount16(x uint16) int

 

Shared Function OnesCount16(x As uint16) As int

Parameters:

  • x:

OnesCount32

 

class method OnesCount32(x: uint32): int

 

static int OnesCount32(uint32 x)

 

static func OnesCount32(_ x: uint32) -> int

 

func OnesCount32(x uint32) int

 

Shared Function OnesCount32(x As uint32) As int

Parameters:

  • x:

OnesCount64

 

class method OnesCount64(x: uint64): int

 

static int OnesCount64(uint64 x)

 

static func OnesCount64(_ x: uint64) -> int

 

func OnesCount64(x uint64) int

 

Shared Function OnesCount64(x As uint64) As int

Parameters:

  • x:

OnesCount8

 

class method OnesCount8(x: uint8): int

 

static int OnesCount8(uint8 x)

 

static func OnesCount8(_ x: uint8) -> int

 

func OnesCount8(x uint8) int

 

Shared Function OnesCount8(x As uint8) As int

Parameters:

  • x:

Reverse

 

class method Reverse(x: uint): uint

 

static uint Reverse(uint x)

 

static func Reverse(_ x: uint) -> uint

 

func Reverse(x uint) uint

 

Shared Function Reverse(x As uint) As uint

Parameters:

  • x:

Reverse16

 

class method Reverse16(x: uint16): uint16

 

static uint16 Reverse16(uint16 x)

 

static func Reverse16(_ x: uint16) -> uint16

 

func Reverse16(x uint16) uint16

 

Shared Function Reverse16(x As uint16) As uint16

Parameters:

  • x:

Reverse32

 

class method Reverse32(x: uint32): uint32

 

static uint32 Reverse32(uint32 x)

 

static func Reverse32(_ x: uint32) -> uint32

 

func Reverse32(x uint32) uint32

 

Shared Function Reverse32(x As uint32) As uint32

Parameters:

  • x:

Reverse64

 

class method Reverse64(x: uint64): uint64

 

static uint64 Reverse64(uint64 x)

 

static func Reverse64(_ x: uint64) -> uint64

 

func Reverse64(x uint64) uint64

 

Shared Function Reverse64(x As uint64) As uint64

Parameters:

  • x:

Reverse8

 

class method Reverse8(x: uint8): uint8

 

static uint8 Reverse8(uint8 x)

 

static func Reverse8(_ x: uint8) -> uint8

 

func Reverse8(x uint8) uint8

 

Shared Function Reverse8(x As uint8) As uint8

Parameters:

  • x:

ReverseBytes

 

class method ReverseBytes(x: uint): uint

 

static uint ReverseBytes(uint x)

 

static func ReverseBytes(_ x: uint) -> uint

 

func ReverseBytes(x uint) uint

 

Shared Function ReverseBytes(x As uint) As uint

Parameters:

  • x:

ReverseBytes16

 

class method ReverseBytes16(x: uint16): uint16

 

static uint16 ReverseBytes16(uint16 x)

 

static func ReverseBytes16(_ x: uint16) -> uint16

 

func ReverseBytes16(x uint16) uint16

 

Shared Function ReverseBytes16(x As uint16) As uint16

Parameters:

  • x:

ReverseBytes32

 

class method ReverseBytes32(x: uint32): uint32

 

static uint32 ReverseBytes32(uint32 x)

 

static func ReverseBytes32(_ x: uint32) -> uint32

 

func ReverseBytes32(x uint32) uint32

 

Shared Function ReverseBytes32(x As uint32) As uint32

Parameters:

  • x:

ReverseBytes64

 

class method ReverseBytes64(x: uint64): uint64

 

static uint64 ReverseBytes64(uint64 x)

 

static func ReverseBytes64(_ x: uint64) -> uint64

 

func ReverseBytes64(x uint64) uint64

 

Shared Function ReverseBytes64(x As uint64) As uint64

Parameters:

  • x:

RotateLeft

 

class method RotateLeft(x: uint; k: int): uint

 

static uint RotateLeft(uint x, int k)

 

static func RotateLeft(_ x: uint, _ k: int) -> uint

 

func RotateLeft(x uint, k int) uint

 

Shared Function RotateLeft(x As uint, k As int) As uint

Parameters:

  • x:
  • k:

RotateLeft16

 

class method RotateLeft16(x: uint16; k: int): uint16

 

static uint16 RotateLeft16(uint16 x, int k)

 

static func RotateLeft16(_ x: uint16, _ k: int) -> uint16

 

func RotateLeft16(x uint16, k int) uint16

 

Shared Function RotateLeft16(x As uint16, k As int) As uint16

Parameters:

  • x:
  • k:

RotateLeft32

 

class method RotateLeft32(x: uint32; k: int): uint32

 

static uint32 RotateLeft32(uint32 x, int k)

 

static func RotateLeft32(_ x: uint32, _ k: int) -> uint32

 

func RotateLeft32(x uint32, k int) uint32

 

Shared Function RotateLeft32(x As uint32, k As int) As uint32

Parameters:

  • x:
  • k:

RotateLeft64

 

class method RotateLeft64(x: uint64; k: int): uint64

 

static uint64 RotateLeft64(uint64 x, int k)

 

static func RotateLeft64(_ x: uint64, _ k: int) -> uint64

 

func RotateLeft64(x uint64, k int) uint64

 

Shared Function RotateLeft64(x As uint64, k As int) As uint64

Parameters:

  • x:
  • k:

RotateLeft8

 

class method RotateLeft8(x: uint8; k: int): uint8

 

static uint8 RotateLeft8(uint8 x, int k)

 

static func RotateLeft8(_ x: uint8, _ k: int) -> uint8

 

func RotateLeft8(x uint8, k int) uint8

 

Shared Function RotateLeft8(x As uint8, k As int) As uint8

Parameters:

  • x:
  • k:

Sub

 

class method Sub(x: uint; y: uint; borrow: uint): tuple of (diff: UInt64, borrowOut: UInt64)

 

static (UInt64 diff, UInt64 borrowOut) Sub(uint x, uint y, uint borrow)

 

static func Sub(_ x: uint, _ y: uint, _ borrow: uint) -> (UInt64, UInt64)

 

func Sub(x uint, y uint, borrow uint) tuple of (|name=diff| UInt64, |name=borrowOut| UInt64)

 

Shared Function Sub(x As uint, y As uint, borrow As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:
  • borrow:

Sub32

 

class method Sub32(x: uint32; y: uint32; borrow: uint32): tuple of (diff: UInt32, borrowOut: UInt32)

 

static (UInt32 diff, UInt32 borrowOut) Sub32(uint32 x, uint32 y, uint32 borrow)

 

static func Sub32(_ x: uint32, _ y: uint32, _ borrow: uint32) -> (UInt32, UInt32)

 

func Sub32(x uint32, y uint32, borrow uint32) tuple of (|name=diff| UInt32, |name=borrowOut| UInt32)

 

Shared Function Sub32(x As uint32, y As uint32, borrow As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:
  • borrow:

Sub64

 

class method Sub64(x: uint64; y: uint64; borrow: uint64): tuple of (diff: uint64, borrowOut: uint64)

 

static (uint64 diff, uint64 borrowOut) Sub64(uint64 x, uint64 y, uint64 borrow)

 

static func Sub64(_ x: uint64, _ y: uint64, _ borrow: uint64) -> (uint64, uint64)

 

func Sub64(x uint64, y uint64, borrow uint64) tuple of (|name=diff| uint64, |name=borrowOut| uint64)

 

Shared Function Sub64(x As uint64, y As uint64, borrow As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:
  • borrow:

TrailingZeros

 

class method TrailingZeros(x: uint): int

 

static int TrailingZeros(uint x)

 

static func TrailingZeros(_ x: uint) -> int

 

func TrailingZeros(x uint) int

 

Shared Function TrailingZeros(x As uint) As int

Parameters:

  • x:

TrailingZeros16

 

class method TrailingZeros16(x: uint16): int

 

static int TrailingZeros16(uint16 x)

 

static func TrailingZeros16(_ x: uint16) -> int

 

func TrailingZeros16(x uint16) int

 

Shared Function TrailingZeros16(x As uint16) As int

Parameters:

  • x:

TrailingZeros32

 

class method TrailingZeros32(x: uint32): int

 

static int TrailingZeros32(uint32 x)

 

static func TrailingZeros32(_ x: uint32) -> int

 

func TrailingZeros32(x uint32) int

 

Shared Function TrailingZeros32(x As uint32) As int

Parameters:

  • x:

TrailingZeros64

 

class method TrailingZeros64(x: uint64): int

 

static int TrailingZeros64(uint64 x)

 

static func TrailingZeros64(_ x: uint64) -> int

 

func TrailingZeros64(x uint64) int

 

Shared Function TrailingZeros64(x As uint64) As int

Parameters:

  • x:

TrailingZeros8

 

class method TrailingZeros8(x: uint8): int

 

static int TrailingZeros8(uint8 x)

 

static func TrailingZeros8(_ x: uint8) -> int

 

func TrailingZeros8(x uint8) int

 

Shared Function TrailingZeros8(x As uint8) As int

Parameters:

  • x:

UintSize

 

const UintSize: Int64 = 64;

 

const Int64 UintSize = 64

 

static let UintSize: Int64 = 64

 

const UintSize Int64 = 64

 

Dim UintSize As Int64 = 64

 

UintSize

 

const UintSize: Int64 = 64;

 

const Int64 UintSize = 64

 

static let UintSize: Int64 = 64

 

const UintSize Int64 = 64

 

Dim UintSize As Int64 = 64

 

Add

 

class method Add(x: uint; y: uint; carry: uint): tuple of (sum: UInt64, carryOut: UInt64)

 

static (UInt64 sum, UInt64 carryOut) Add(uint x, uint y, uint carry)

 

static func Add(_ x: uint, _ y: uint, _ carry: uint) -> (UInt64, UInt64)

 

func Add(x uint, y uint, carry uint) tuple of (|name=sum| UInt64, |name=carryOut| UInt64)

 

Shared Function Add(x As uint, y As uint, carry As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:
  • carry:

Add32

 

class method Add32(x: uint32; y: uint32; carry: uint32): tuple of (sum: UInt32, carryOut: UInt32)

 

static (UInt32 sum, UInt32 carryOut) Add32(uint32 x, uint32 y, uint32 carry)

 

static func Add32(_ x: uint32, _ y: uint32, _ carry: uint32) -> (UInt32, UInt32)

 

func Add32(x uint32, y uint32, carry uint32) tuple of (|name=sum| UInt32, |name=carryOut| UInt32)

 

Shared Function Add32(x As uint32, y As uint32, carry As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:
  • carry:

Add64

 

class method Add64(x: uint64; y: uint64; carry: uint64): tuple of (sum: uint64, carryOut: uint64)

 

static (uint64 sum, uint64 carryOut) Add64(uint64 x, uint64 y, uint64 carry)

 

static func Add64(_ x: uint64, _ y: uint64, _ carry: uint64) -> (uint64, uint64)

 

func Add64(x uint64, y uint64, carry uint64) tuple of (|name=sum| uint64, |name=carryOut| uint64)

 

Shared Function Add64(x As uint64, y As uint64, carry As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:
  • carry:

Div

 

class method Div(hi: uint; lo: uint; y: uint): tuple of (quo: UInt64, rem: UInt64)

 

static (UInt64 quo, UInt64 rem) Div(uint hi, uint lo, uint y)

 

static func Div(_ hi: uint, _ lo: uint, _ y: uint) -> (UInt64, UInt64)

 

func Div(hi uint, lo uint, y uint) tuple of (|name=quo| UInt64, |name=rem| UInt64)

 

Shared Function Div(hi As uint, lo As uint, y As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • hi:
  • lo:
  • y:

Div32

 

class method Div32(hi: uint32; lo: uint32; y: uint32): tuple of (quo: UInt32, rem: UInt32)

 

static (UInt32 quo, UInt32 rem) Div32(uint32 hi, uint32 lo, uint32 y)

 

static func Div32(_ hi: uint32, _ lo: uint32, _ y: uint32) -> (UInt32, UInt32)

 

func Div32(hi uint32, lo uint32, y uint32) tuple of (|name=quo| UInt32, |name=rem| UInt32)

 

Shared Function Div32(hi As uint32, lo As uint32, y As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • hi:
  • lo:
  • y:

Div64

 

class method Div64(hi: uint64; lo: uint64; y: uint64): tuple of (quo: uint64, rem: uint64)

 

static (uint64 quo, uint64 rem) Div64(uint64 hi, uint64 lo, uint64 y)

 

static func Div64(_ hi: uint64, _ lo: uint64, _ y: uint64) -> (uint64, uint64)

 

func Div64(hi uint64, lo uint64, y uint64) tuple of (|name=quo| uint64, |name=rem| uint64)

 

Shared Function Div64(hi As uint64, lo As uint64, y As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • hi:
  • lo:
  • y:

LeadingZeros

 

class method LeadingZeros(x: uint): int

 

static int LeadingZeros(uint x)

 

static func LeadingZeros(_ x: uint) -> int

 

func LeadingZeros(x uint) int

 

Shared Function LeadingZeros(x As uint) As int

Parameters:

  • x:

LeadingZeros16

 

class method LeadingZeros16(x: uint16): int

 

static int LeadingZeros16(uint16 x)

 

static func LeadingZeros16(_ x: uint16) -> int

 

func LeadingZeros16(x uint16) int

 

Shared Function LeadingZeros16(x As uint16) As int

Parameters:

  • x:

LeadingZeros32

 

class method LeadingZeros32(x: uint32): int

 

static int LeadingZeros32(uint32 x)

 

static func LeadingZeros32(_ x: uint32) -> int

 

func LeadingZeros32(x uint32) int

 

Shared Function LeadingZeros32(x As uint32) As int

Parameters:

  • x:

LeadingZeros64

 

class method LeadingZeros64(x: uint64): int

 

static int LeadingZeros64(uint64 x)

 

static func LeadingZeros64(_ x: uint64) -> int

 

func LeadingZeros64(x uint64) int

 

Shared Function LeadingZeros64(x As uint64) As int

Parameters:

  • x:

LeadingZeros8

 

class method LeadingZeros8(x: uint8): int

 

static int LeadingZeros8(uint8 x)

 

static func LeadingZeros8(_ x: uint8) -> int

 

func LeadingZeros8(x uint8) int

 

Shared Function LeadingZeros8(x As uint8) As int

Parameters:

  • x:

Len

 

class method Len(x: uint): int

 

static int Len(uint x)

 

static func Len(_ x: uint) -> int

 

func Len(x uint) int

 

Shared Function Len(x As uint) As int

Parameters:

  • x:

Len16

 

class method Len16(x: uint16): int

 

static int Len16(uint16 x)

 

static func Len16(_ x: uint16) -> int

 

func Len16(x uint16) int

 

Shared Function Len16(x As uint16) As int

Parameters:

  • x:

Len32

 

class method Len32(x: uint32): int

 

static int Len32(uint32 x)

 

static func Len32(_ x: uint32) -> int

 

func Len32(x uint32) int

 

Shared Function Len32(x As uint32) As int

Parameters:

  • x:

Len64

 

class method Len64(x: uint64): int

 

static int Len64(uint64 x)

 

static func Len64(_ x: uint64) -> int

 

func Len64(x uint64) int

 

Shared Function Len64(x As uint64) As int

Parameters:

  • x:

Len8

 

class method Len8(x: uint8): int

 

static int Len8(uint8 x)

 

static func Len8(_ x: uint8) -> int

 

func Len8(x uint8) int

 

Shared Function Len8(x As uint8) As int

Parameters:

  • x:

Mul

 

class method Mul(x: uint; y: uint): tuple of (hi: UInt64, lo: UInt64)

 

static (UInt64 hi, UInt64 lo) Mul(uint x, uint y)

 

static func Mul(_ x: uint, _ y: uint) -> (UInt64, UInt64)

 

func Mul(x uint, y uint) tuple of (|name=hi| UInt64, |name=lo| UInt64)

 

Shared Function Mul(x As uint, y As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:

Mul32

 

class method Mul32(x: uint32; y: uint32): tuple of (hi: UInt32, lo: UInt32)

 

static (UInt32 hi, UInt32 lo) Mul32(uint32 x, uint32 y)

 

static func Mul32(_ x: uint32, _ y: uint32) -> (UInt32, UInt32)

 

func Mul32(x uint32, y uint32) tuple of (|name=hi| UInt32, |name=lo| UInt32)

 

Shared Function Mul32(x As uint32, y As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:

Mul64

 

class method Mul64(x: uint64; y: uint64): tuple of (hi: uint64, lo: uint64)

 

static (uint64 hi, uint64 lo) Mul64(uint64 x, uint64 y)

 

static func Mul64(_ x: uint64, _ y: uint64) -> (uint64, uint64)

 

func Mul64(x uint64, y uint64) tuple of (|name=hi| uint64, |name=lo| uint64)

 

Shared Function Mul64(x As uint64, y As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:

OnesCount

 

class method OnesCount(x: uint): int

 

static int OnesCount(uint x)

 

static func OnesCount(_ x: uint) -> int

 

func OnesCount(x uint) int

 

Shared Function OnesCount(x As uint) As int

Parameters:

  • x:

OnesCount16

 

class method OnesCount16(x: uint16): int

 

static int OnesCount16(uint16 x)

 

static func OnesCount16(_ x: uint16) -> int

 

func OnesCount16(x uint16) int

 

Shared Function OnesCount16(x As uint16) As int

Parameters:

  • x:

OnesCount32

 

class method OnesCount32(x: uint32): int

 

static int OnesCount32(uint32 x)

 

static func OnesCount32(_ x: uint32) -> int

 

func OnesCount32(x uint32) int

 

Shared Function OnesCount32(x As uint32) As int

Parameters:

  • x:

OnesCount64

 

class method OnesCount64(x: uint64): int

 

static int OnesCount64(uint64 x)

 

static func OnesCount64(_ x: uint64) -> int

 

func OnesCount64(x uint64) int

 

Shared Function OnesCount64(x As uint64) As int

Parameters:

  • x:

OnesCount8

 

class method OnesCount8(x: uint8): int

 

static int OnesCount8(uint8 x)

 

static func OnesCount8(_ x: uint8) -> int

 

func OnesCount8(x uint8) int

 

Shared Function OnesCount8(x As uint8) As int

Parameters:

  • x:

Reverse

 

class method Reverse(x: uint): uint

 

static uint Reverse(uint x)

 

static func Reverse(_ x: uint) -> uint

 

func Reverse(x uint) uint

 

Shared Function Reverse(x As uint) As uint

Parameters:

  • x:

Reverse16

 

class method Reverse16(x: uint16): uint16

 

static uint16 Reverse16(uint16 x)

 

static func Reverse16(_ x: uint16) -> uint16

 

func Reverse16(x uint16) uint16

 

Shared Function Reverse16(x As uint16) As uint16

Parameters:

  • x:

Reverse32

 

class method Reverse32(x: uint32): uint32

 

static uint32 Reverse32(uint32 x)

 

static func Reverse32(_ x: uint32) -> uint32

 

func Reverse32(x uint32) uint32

 

Shared Function Reverse32(x As uint32) As uint32

Parameters:

  • x:

Reverse64

 

class method Reverse64(x: uint64): uint64

 

static uint64 Reverse64(uint64 x)

 

static func Reverse64(_ x: uint64) -> uint64

 

func Reverse64(x uint64) uint64

 

Shared Function Reverse64(x As uint64) As uint64

Parameters:

  • x:

Reverse8

 

class method Reverse8(x: uint8): uint8

 

static uint8 Reverse8(uint8 x)

 

static func Reverse8(_ x: uint8) -> uint8

 

func Reverse8(x uint8) uint8

 

Shared Function Reverse8(x As uint8) As uint8

Parameters:

  • x:

ReverseBytes

 

class method ReverseBytes(x: uint): uint

 

static uint ReverseBytes(uint x)

 

static func ReverseBytes(_ x: uint) -> uint

 

func ReverseBytes(x uint) uint

 

Shared Function ReverseBytes(x As uint) As uint

Parameters:

  • x:

ReverseBytes16

 

class method ReverseBytes16(x: uint16): uint16

 

static uint16 ReverseBytes16(uint16 x)

 

static func ReverseBytes16(_ x: uint16) -> uint16

 

func ReverseBytes16(x uint16) uint16

 

Shared Function ReverseBytes16(x As uint16) As uint16

Parameters:

  • x:

ReverseBytes32

 

class method ReverseBytes32(x: uint32): uint32

 

static uint32 ReverseBytes32(uint32 x)

 

static func ReverseBytes32(_ x: uint32) -> uint32

 

func ReverseBytes32(x uint32) uint32

 

Shared Function ReverseBytes32(x As uint32) As uint32

Parameters:

  • x:

ReverseBytes64

 

class method ReverseBytes64(x: uint64): uint64

 

static uint64 ReverseBytes64(uint64 x)

 

static func ReverseBytes64(_ x: uint64) -> uint64

 

func ReverseBytes64(x uint64) uint64

 

Shared Function ReverseBytes64(x As uint64) As uint64

Parameters:

  • x:

RotateLeft

 

class method RotateLeft(x: uint; k: int): uint

 

static uint RotateLeft(uint x, int k)

 

static func RotateLeft(_ x: uint, _ k: int) -> uint

 

func RotateLeft(x uint, k int) uint

 

Shared Function RotateLeft(x As uint, k As int) As uint

Parameters:

  • x:
  • k:

RotateLeft16

 

class method RotateLeft16(x: uint16; k: int): uint16

 

static uint16 RotateLeft16(uint16 x, int k)

 

static func RotateLeft16(_ x: uint16, _ k: int) -> uint16

 

func RotateLeft16(x uint16, k int) uint16

 

Shared Function RotateLeft16(x As uint16, k As int) As uint16

Parameters:

  • x:
  • k:

RotateLeft32

 

class method RotateLeft32(x: uint32; k: int): uint32

 

static uint32 RotateLeft32(uint32 x, int k)

 

static func RotateLeft32(_ x: uint32, _ k: int) -> uint32

 

func RotateLeft32(x uint32, k int) uint32

 

Shared Function RotateLeft32(x As uint32, k As int) As uint32

Parameters:

  • x:
  • k:

RotateLeft64

 

class method RotateLeft64(x: uint64; k: int): uint64

 

static uint64 RotateLeft64(uint64 x, int k)

 

static func RotateLeft64(_ x: uint64, _ k: int) -> uint64

 

func RotateLeft64(x uint64, k int) uint64

 

Shared Function RotateLeft64(x As uint64, k As int) As uint64

Parameters:

  • x:
  • k:

RotateLeft8

 

class method RotateLeft8(x: uint8; k: int): uint8

 

static uint8 RotateLeft8(uint8 x, int k)

 

static func RotateLeft8(_ x: uint8, _ k: int) -> uint8

 

func RotateLeft8(x uint8, k int) uint8

 

Shared Function RotateLeft8(x As uint8, k As int) As uint8

Parameters:

  • x:
  • k:

Sub

 

class method Sub(x: uint; y: uint; borrow: uint): tuple of (diff: UInt64, borrowOut: UInt64)

 

static (UInt64 diff, UInt64 borrowOut) Sub(uint x, uint y, uint borrow)

 

static func Sub(_ x: uint, _ y: uint, _ borrow: uint) -> (UInt64, UInt64)

 

func Sub(x uint, y uint, borrow uint) tuple of (|name=diff| UInt64, |name=borrowOut| UInt64)

 

Shared Function Sub(x As uint, y As uint, borrow As uint) As Tuple (Of UInt64, UInt64)

Parameters:

  • x:
  • y:
  • borrow:

Sub32

 

class method Sub32(x: uint32; y: uint32; borrow: uint32): tuple of (diff: UInt32, borrowOut: UInt32)

 

static (UInt32 diff, UInt32 borrowOut) Sub32(uint32 x, uint32 y, uint32 borrow)

 

static func Sub32(_ x: uint32, _ y: uint32, _ borrow: uint32) -> (UInt32, UInt32)

 

func Sub32(x uint32, y uint32, borrow uint32) tuple of (|name=diff| UInt32, |name=borrowOut| UInt32)

 

Shared Function Sub32(x As uint32, y As uint32, borrow As uint32) As Tuple (Of UInt32, UInt32)

Parameters:

  • x:
  • y:
  • borrow:

Sub64

 

class method Sub64(x: uint64; y: uint64; borrow: uint64): tuple of (diff: uint64, borrowOut: uint64)

 

static (uint64 diff, uint64 borrowOut) Sub64(uint64 x, uint64 y, uint64 borrow)

 

static func Sub64(_ x: uint64, _ y: uint64, _ borrow: uint64) -> (uint64, uint64)

 

func Sub64(x uint64, y uint64, borrow uint64) tuple of (|name=diff| uint64, |name=borrowOut| uint64)

 

Shared Function Sub64(x As uint64, y As uint64, borrow As uint64) As Tuple (Of uint64, uint64)

Parameters:

  • x:
  • y:
  • borrow:

TrailingZeros

 

class method TrailingZeros(x: uint): int

 

static int TrailingZeros(uint x)

 

static func TrailingZeros(_ x: uint) -> int

 

func TrailingZeros(x uint) int

 

Shared Function TrailingZeros(x As uint) As int

Parameters:

  • x:

TrailingZeros16

 

class method TrailingZeros16(x: uint16): int

 

static int TrailingZeros16(uint16 x)

 

static func TrailingZeros16(_ x: uint16) -> int

 

func TrailingZeros16(x uint16) int

 

Shared Function TrailingZeros16(x As uint16) As int

Parameters:

  • x:

TrailingZeros32

 

class method TrailingZeros32(x: uint32): int

 

static int TrailingZeros32(uint32 x)

 

static func TrailingZeros32(_ x: uint32) -> int

 

func TrailingZeros32(x uint32) int

 

Shared Function TrailingZeros32(x As uint32) As int

Parameters:

  • x:

TrailingZeros64

 

class method TrailingZeros64(x: uint64): int

 

static int TrailingZeros64(uint64 x)

 

static func TrailingZeros64(_ x: uint64) -> int

 

func TrailingZeros64(x uint64) int

 

Shared Function TrailingZeros64(x As uint64) As int

Parameters:

  • x:

TrailingZeros8

 

class method TrailingZeros8(x: uint8): int

 

static int TrailingZeros8(uint8 x)

 

static func TrailingZeros8(_ x: uint8) -> int

 

func TrailingZeros8(x uint8) int

 

Shared Function TrailingZeros8(x As uint8) As int

Parameters:

  • x: