#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unused_variables)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(target_os = "zkvm")]
pub use openvm_custom_insn::{custom_insn_i, custom_insn_r};
#[cfg(target_os = "zkvm")]
pub mod alloc;
#[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;
pub mod print;
#[cfg(feature = "rust-runtime")]
pub mod rust_rt;
pub const WORD_SIZE: usize = core::mem::size_of::<u32>();
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
}