//! CKB VM cost model.
//!//! The cost model assign cycles to instructions.
/// How many bytes can transfer when VM costs one cycle.
// 0.25 cycles per byte
pubconstBYTES_PER_CYCLE:u64=4;/// Calculates how many cycles spent to load the specified number of bytes.
pubfntransferred_byte_cycles(bytes:u64)->u64{// Compiler will optimize the divisin here to shifts.
bytes.div_ceil(BYTES_PER_CYCLE)}