mclangc/include/int.mcl

16 lines
438 B
Plaintext
Raw Normal View History

const NULL 0 end
const false 0 end
const true 1 end
fn div with int int returns int int divmod drop end
fn mod with int int returns int int divmod swap drop end
fn / with int int returns int int div end
fn % with int int returns int int mod end
fn 2dup with any any returns any over over end
fn 2drop with any any returns any drop drop end
const sizeof(u64) 8 end
const sizeof(u32) 4 end
const sizeof(u16) 2 end
const sizeof(u8) 1 end