1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
//! Atomic types of the FuelVM.
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#[cfg(feature = "alloc")]
extern crate alloc;
mod types;
pub use types::*;
/// Word-aligned bytes serialization functions.
pub mod bytes;
/// Register ID type
pub type RegisterId = usize;
/// Register value type
pub type Word = u64;
/// 6-bits immediate value type
pub type Immediate06 = u8;
/// 12-bits immediate value type
pub type Immediate12 = u16;
/// 18-bits immediate value type
pub type Immediate18 = u32;
/// 24-bits immediate value type
pub type Immediate24 = u32;