Crate i256

Source
Expand description

Optimized implementations of 256-bit signed and unsigned integers.

This contains a fixed-width, performant implementation for 256-bit signed and unsigned integers. This has significantly faster performance for basic math operations than comparable fixed-width integer types, since it can use optimizations from 128-bit integers on 64-bit architectures.

Structs§

  • The 256-bit signed integer type.
  • The 384-bit signed integer type.
  • The 512-bit signed integer type.
  • The 1024-bit signed integer type.
  • An error which can be returned when parsing an integer.
  • The error type returned when a checked integral type conversion fails.
  • The 256-bit unsigned integer type.
  • The 384-bit unsigned integer type.
  • The 512-bit unsigned integer type.
  • The 1024-bit unsigned integer type.

Enums§

  • Enum to store the various types of errors that can cause parsing an integer to fail.

Type Aliases§

  • The same sized type of the limb as a signed integer.
  • A signed type double the width of the limb.
  • The unsigned type used as a native “limb”.
  • An unsigned type double the width of the limb.
  • The 256-bit signed integer type.
  • The 256-bit unsigned integer type.