mclangc/include/int.mcl

20 lines
477 B
Plaintext
Raw Normal View History

const NULL 0 end
const false 0 end
const true 1 end
2023-04-13 10:38:20 +00:00
inline fn div with int int returns int then divmod drop done
inline fn mod with int int returns int then divmod swap drop done
2023-04-13 10:38:20 +00:00
inline fn dup2 with any any returns any any any any then over over done
inline fn drop2 with any any returns void then drop drop done
const sizeof(u64) 8 end
const sizeof(u32) 4 end
const sizeof(u16) 2 end
2024-03-07 15:37:38 +00:00
const sizeof(u8) 1 end
const u64 8 end
const u32 4 end
const u16 2 end
const u8 1 end