Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/wasm/integers.unit.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / wasm / integers.unit.om` 99 lines ยท 1558 bytes Raw Blame History 1 note Every function is exercised by cases.tsv; canonical boundary arguments only. 2 fn addu8 a uchar b uchar to uchar 3 ret add a b 4 end 5 fn subu16 a ushort b ushort to ushort 6 ret sub a b 7 end 8 fn mulu32 a uint b uint to uint 9 ret mul a b 10 end 11 fn addu64 a ulong b ulong to ulong 12 ret add a b 13 end 14 fn subi8 a byte b byte to byte 15 ret sub a b 16 end 17 fn muli16 a short b short to short 18 ret mul a b 19 end 20 fn addi32 a int b int to int 21 ret add a b 22 end 23 fn addi64 a long b long to long 24 ret add a b 25 end 26 fn subi64 a long b long to long 27 ret sub a b 28 end 29 fn muli64 a long b long to long 30 ret mul a b 31 end 32 fn divu64 a ulong b ulong to ulong 33 ret div a b 34 end 35 fn divi64 a long b long to long 36 ret div a b 37 end 38 fn remi64 a long b long to long 39 ret rem a b 40 end 41 fn remu64 a ulong b ulong to ulong 42 ret rem a b 43 end 44 fn shli64 a long b uint to long 45 ret shl a b 46 end 47 fn shri64 a long b byte to long 48 ret shr a b 49 end 50 fn shru64 a ulong b uint to ulong 51 ret shr a b 52 end 53 fn shlu8 a uchar b uint to uchar 54 ret shl a b 55 end 56 fn andi64 a long b long to long 57 ret and a b 58 end 59 fn oru32 a uint b uint to uint 60 ret or a b 61 end 62 fn xoru64 a ulong b ulong to ulong 63 ret xor a b 64 end 65 fn negi64 a long to long 66 ret neg a 67 end 68 fn negu8 a uchar to uchar 69 ret neg a 70 end 71 fn noti8 a byte to byte 72 ret not a 73 end 74 fn notbool a bool to bool 75 ret not a 76 end 77 fn castsu a long to ulong 78 ret ulong a 79 end 80 fn castus a ulong to long 81 ret long a 82 end 83 fn casti8 a long to byte 84 ret byte a 85 end 86 fn castu8 a ulong to uchar 87 ret uchar a 88 end 89 fn voidfn a uint to void 90 ret 91 end 92 fn voidcall a uint to void 93 voidfn a 94 ret 95 end 96 fn voidthen a uint to uint 97 voidcall a 98 ret a 99 end