DeepBook v2::math bytecode | tide- Move path
- 0x0000…dee9::math
- Functions
- 83 public, 0 entry
- Structs
- 0
math
The on-chain disassembly. Offsets are bytecode positions within each function.
1// Move bytecode v7
2module dee9.math {
3
4public(friend) unsafe_mul(Arg0: u64, Arg1: u64): u64 {
5L2: loc0: u64
6B0:
70MoveLoc[0](Arg0: u64)
81MoveLoc
[1](Arg1: u64)
92Call unsafe_mul_round(u64, u64): bool * u64
16public(friend) unsafe_mul_round(Arg0: u64, Arg1: u64): bool * u64 {
298CopyLoc[3](loc1: u128)
309CopyLoc[4](loc2: u128)
3211LdConst[1](u128: 1000..)
4118MoveLoc[2](loc0: bool)
4219MoveLoc[3](loc1: u128)
4320MoveLoc[4](loc2: u128)
4522LdConst[1](u128: 1000..)
51public mul(Arg0: u64, Arg1: u64): u64 {
562Call unsafe_mul_round(u64, u64): bool * u64
6912MoveLoc[2](loc0: u64)
73public mul_round(Arg0: u64, Arg1: u64): bool * u64 {
792Call unsafe_mul_round(u64, u64): bool * u64
9212MoveLoc[2](loc0: bool)
9313MoveLoc[3](loc1: u64)
97public(friend) unsafe_div(Arg0: u64, Arg1: u64): u64 {
1000MoveLoc[0](Arg0: u64)
1011MoveLoc[1](Arg1: u64)
1022Call unsafe_div_round(u64, u64): bool * u64
1055MoveLoc[2](loc0: u64)
109public(friend) unsafe_div_round(Arg0: u64, Arg1: u64): bool * u64 {
1140MoveLoc[0](Arg0: u64)
1173MoveLoc[1](Arg1: u64)
1228CopyLoc[3](loc1: u128)
1239LdConst[0](u64: 1000..)
12612CopyLoc[4](loc2: u128)
13318StLoc[2](loc0: bool)
13519MoveLoc[2](loc0: bool)
13620MoveLoc[3](loc1: u128)
13721LdConst[0](u64: 1000..)
14024MoveLoc[4](loc2: u128)
146public div_round(Arg0: u64, Arg1: u64): bool * u64 {
1500MoveLoc[0](Arg0: u64)
1511MoveLoc[1](Arg1: u64)
1522Call unsafe_div_round(u64, u64): bool * u64
1555CopyLoc[3](loc1: u64)
16512MoveLoc[2](loc0: bool)
16613MoveLoc[3](loc1: u64)
170public(friend) count_leading_zeros(Arg0: u128): u8 {
1740CopyLoc[0](Arg0: u128)
1859CopyLoc[0](Arg0: u128)
18610LdU128(340282366920938463444927863358058659840)
19215MoveLoc[0](Arg0: u128)
19518StLoc[0](Arg0: u128)
19619MoveLoc[2](loc1: u8)
20123CopyLoc[0](Arg0: u128)
20224LdU128(340282366841710300949110269838224261120)
20829MoveLoc[0](Arg0: u128)
21132StLoc[0](Arg0: u128)
21233MoveLoc[2](loc1: u8)
21737CopyLoc[0](Arg0: u128)
21838LdU128(340277174624079928635746076935438991360)
22443MoveLoc[0](Arg0: u128)
22746StLoc[0](Arg0: u128)
22847MoveLoc[2](loc1: u8)
23351CopyLoc[0](Arg0: u128)
23452LdU128(338953138925153547590470800371487866880)
24057MoveLoc[0](Arg0: u128)
24360StLoc[0](Arg0: u128)
24461MoveLoc[2](loc1: u8)
24965CopyLoc[0](Arg0: u128)
25066LdU128(319014718988379809496913694467282698240)
25671MoveLoc[0](Arg0: u128)
25974StLoc[0](Arg0: u128)
26075MoveLoc[2](loc1: u8)
26579CopyLoc[0](Arg0: u128)
26680LdU128(255211775190703847597530955573826158592)
27285MoveLoc[0](Arg0: u128)
27588StLoc[0](Arg0: u128)
27689MoveLoc[2](loc1: u8)
28193MoveLoc[0](Arg0: u128)
28294LdU128(170141183460469231731687303715884105728)
28899MoveLoc[2](loc1: u8)
293103MoveLoc[2](loc1: u8)
296105MoveLoc[1](loc0: u8)
302 1 => u128: 1000000000