Crate amplify_num

source ·
Expand description

Custom-sized numeric types

Implementation of a various integer types with custom bit dimension. This includes:

  • large signed and unsigned integers, named large int types (256, 512, 1024-bit)
  • custom sub-8 bit unsigned integers, named small int types (from 1 to 7-bit)
  • 24-, 40-, 48- and 56-bit unsigned integer.

The functions here are designed to be fast.

Modules§

Structs§

  • Large integer type
  • Large integer type
  • Large integer type
  • 1-bit unsigned integer in the range 0..1. It can be used instead of bool when 1-bit numeric (and not boolean) arithmetic is required
  • 2-bit unsigned integer in the range 0..4
  • 3-bit unsigned integer in the range 0..8
  • 4-bit unsigned integer in the range 0..16
  • 5-bit unsigned integer in the range 0..32
  • 6-bit unsigned integer in the range 0..64
  • 7-bit unsigned integer in the range 0..128
  • 24-bit unsigned integer in the range 0..16_777_216
  • 40-bit unsigned integer in the range 0..2^40
  • 48-bit unsigned integer in the range 0..2^48
  • 56-bit unsigned integer in the range 0..2^56
  • Large integer type
  • Large integer type
  • Large integer type