#![doc = include_str!("../README.md")]
#![no_std]
#![allow(unused_variables)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(all(feature = "rust-runtime", target_os = "zkvm"))]
pub mod custom_insn;
#[cfg(all(feature = "export-getrandom", target_os = "zkvm"))]
mod getrandom;
#[cfg(all(feature = "rust-runtime", target_os = "zkvm"))]
pub mod heap;
#[cfg(all(feature = "export-libm", target_os = "zkvm"))]
mod libm_extern;
pub mod memory;
#[cfg(feature = "rust-runtime")]
pub mod rust_rt;
pub const WORD_SIZE: usize = core::mem::size_of::<u32>();
pub const PAGE_SIZE: usize = 1024;
pub mod fileno {
pub const STDIN: u32 = 0;
pub const STDOUT: u32 = 1;
pub const STDERR: u32 = 2;
pub const JOURNAL: u32 = 3;
}
pub const fn align_up(addr: usize, align: usize) -> usize {
let mask = align - 1;
(addr + mask) & !mask
}