Int

FloatToInt

FloatToInt Description Convert a float to an integer when no fractional or negative part remains.

Read More

IntAdd

IntAdd Description Generic addition convenience macro. Dispatches on the type of b to the matching IntAdd* overload.

Read More

IntBitLength

IntBitLength Description Get the number of significant bits in an integer.

Read More

IntByteLength

IntByteLength Description Get the minimum number of bytes needed to encode an integer.

Read More

IntClone

IntClone Description Create a deep copy of an integer.

Read More

IntCompare

IntCompare Description Compare an integer against another integer-like value. Dispatches on the type of rhs to the matching internal handler.

Read More

IntDiv

IntDiv Description Generic division convenience macro.

Read More

IntDivExact

IntDivExact Description Generic exact-division convenience macro.

Read More

IntDivMod

IntDivMod Description Generic quotient-and-remainder convenience macro.

Read More

IntEQ

IntEQ Description Test whether two numeric values compare equal. The right-hand operand may be an Int, Int*, const Int*, u64, or i64 compatible type.

Read More

IntFitsU64

IntFitsU64 Description Test whether the integer can be losslessly converted to u64.

Read More

IntFrom

IntFrom Description Convert a native integer into an arbitrary-precision integer. Dispatches on the type of value.

Read More

IntFromBinary

IntFromBinary Description Parse a binary string into an integer. Accepts an optional 0b or 0B prefix.

Read More

IntFromBytesBE

IntFromBytesBE Description Create an integer from big-endian bytes.

Read More

IntFromBytesLE

IntFromBytesLE Description Create an integer from little-endian bytes.

Read More

IntFromHexStr

IntFromHexStr Description Parse a hexadecimal string into an integer. This parser expects hexadecimal digits only and does not accept a 0x prefix.

Read More

IntFromOctStr

IntFromOctStr Description Parse an octal string into an integer. Accepts an optional 0o or 0O prefix.

Read More

IntFromStr

IntFromStr Description Parse a decimal string into an integer. An optional leading + is accepted.

Read More

IntFromStrRadix

IntFromStrRadix Description Parse digits in the given radix into an integer. Supports radices from 2 through 36 and ignores underscore separators.

Read More

IntGCD

IntGCD Description Compute the greatest common divisor of two integers.

Read More

IntGE

IntGE Description Test whether lhs is greater than or equal to rhs.

Read More

IntGT

IntGT Description Test whether lhs is strictly greater than rhs.

Read More

IntIsEven

IntIsEven Description Test whether the integer is even.

Read More

IntIsOdd

IntIsOdd Description Test whether the integer is odd.

Read More

IntIsOne

IntIsOne Description Test whether the integer is exactly one.

Read More

IntIsPerfectPower

IntIsPerfectPower Description Test whether a value is a perfect power.

Read More

IntIsPerfectSquare

IntIsPerfectSquare Description Test whether a value is a perfect square.

Read More

IntIsPowerOfTwo

IntIsPowerOfTwo Description Test whether the integer is a power of two.

Read More

IntIsProbablePrime

IntIsProbablePrime Description Perform a probabilistic primality test.

Read More

IntIsZero

IntIsZero Description Test whether the integer is zero.

Read More

IntJacobi

IntJacobi Description Compute the Jacobi symbol (a/n).

Read More

IntLCM

IntLCM Description Compute the least common multiple of two integers.

Read More

IntLE

IntLE Description Test whether lhs is less than or equal to rhs.

Read More

IntLog2

IntLog2 Description Compute floor(log2(value)).

Read More

IntLT

IntLT Description Test whether lhs is strictly less than rhs.

Read More

IntMod

IntMod Description Generic modulo convenience macro.

Read More

IntModAdd

IntModAdd Description Compute (a + b) mod modulus.

Read More

IntModDiv

IntModDiv Description Compute modular division a / b (mod modulus).

Read More

IntModInv

IntModInv Description Compute the multiplicative inverse of a value modulo modulus.

Read More

IntModMul

IntModMul Description Compute (a * b) mod modulus.

Read More

IntModSqrt

IntModSqrt Description Compute a modular square root.

Read More

IntModSub

IntModSub Description Compute (a - b) mod modulus.

Read More

IntMul

IntMul Description Generic multiplication convenience macro.

Read More

IntNE

IntNE Description Test whether two numeric values differ.

Read More

IntNextPrime

IntNextPrime Description Find the next probable prime greater than or equal to a value.

Read More

IntPow

IntPow Description Generic exponentiation convenience macro.

Read More

IntPowMod

IntPowMod Description Generic modular exponentiation convenience macro.

Read More

IntRoot

IntRoot Description Compute the integer degree-th root of a value.

Read More

IntRootRem

IntRootRem Description Compute an integer root and the leftover remainder.

Read More

IntShiftLeft

IntShiftLeft Description Shift an integer left by the given number of bit positions.

Read More

IntShiftRight

IntShiftRight Description Shift an integer right by the given number of bit positions.

Read More

IntSqrt

IntSqrt Description Compute the integer square root.

Read More

IntSqrtRem

IntSqrtRem Description Compute the integer square root and remainder.

Read More

IntSquare

IntSquare Description Square an integer.

Read More

IntSquareMod

IntSquareMod Description Compute (value^2) mod modulus.

Read More

IntSub

IntSub Description Generic subtraction convenience macro. Dispatches on the type of b to the matching IntSub* overload.

Read More

IntToBinary

IntToBinary Description Convert an integer to a binary string.

Read More

IntToBytesBE

IntToBytesBE Description Export an integer into big-endian bytes.

Read More

IntToBytesLE

IntToBytesLE Description Export an integer into little-endian bytes.

Read More

IntToHexStr

IntToHexStr Description Convert an integer to a hexadecimal string.

Read More

IntToOctStr

IntToOctStr Description Convert an integer to an octal string.

Read More

IntToStr

IntToStr Description Convert an integer to a decimal string.

Read More

IntToStrRadix

IntToStrRadix Description Convert an integer to text in the given radix.

Read More

IntToU64

IntToU64 Description Convert an integer to u64.

Read More

IntTrailingZeroCount

IntTrailingZeroCount Description Count trailing zero bits in the integer representation.

Read More