Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

Move path
0xba0d…e978::utils
Functions
44 public, 0 entry
Structs
0
Friend modules
None
utils

Bytecode96 lines

The on-chain disassembly. Offsets are instruction numbers within each function.

// Move bytecode v6
module ba0dd78bdd5d1b5f02a689444522ea9a79e1bc4cd4d8e6a57b59f3fbcae5e978.utils {
use 0000000000000000000000000000000000000000000000000000000000000001::fixed_point32;
 
public sum_f32(Arg0: FixedPoint32, Arg1: FixedPoint32): FixedPoint32 {
L2: loc0: u64
L3: loc1: u64
B0:
0MoveLoc[0](Arg0: FixedPoint32)
1Call fixed_point32::get_raw_value(FixedPoint32): u64
2StLoc[2](loc0: u64)
3MoveLoc[1](Arg1: FixedPoint32)
4Call fixed_point32::get_raw_value(FixedPoint32): u64
5StLoc[3](loc1: u64)
6MoveLoc[2](loc0: u64)
7MoveLoc[3](loc1: u64)
8Add
9Call fixed_point32::create_from_raw_value(u64): FixedPoint32
10Ret
}
 
public diff(Arg0: FixedPoint32, Arg1: FixedPoint32): FixedPoint32 {
L2: loc0: u64
L3: loc1: u64
B0:
0MoveLoc[0](Arg0: FixedPoint32)
1Call fixed_point32::get_raw_value(FixedPoint32): u64
2StLoc[2](loc0: u64)
3MoveLoc[1](Arg1: FixedPoint32)
4Call fixed_point32::get_raw_value(FixedPoint32): u64
5StLoc[3](loc1: u64)
6MoveLoc[2](loc0: u64)
7MoveLoc[3](loc1: u64)
8Sub
9Call fixed_point32::create_from_raw_value(u64): FixedPoint32
10Ret
}
 
public mul_factor(Arg0: u64, Arg1: u64, Arg2: u64): u64 {
B0:
0CopyLoc[2](Arg2: u64)
1LdU64(0)
2Gt
3BrFalse(5)
B1:
4Branch(7)
B2:
5LdConst[0](u64: 0)
6Abort
B3:
7MoveLoc[0](Arg0: u64)
8CastU128
9MoveLoc[1](Arg1: u64)
10CastU128
11Mul
12CopyLoc[2](Arg2: u64)
13CastU128
14LdU128(2)
15Div
16Add
17MoveLoc[2](Arg2: u64)
18CastU128
19Div
20CastU64
21Ret
}
 
public mul_factor_u128(Arg0: u128, Arg1: u128, Arg2: u128): u128 {
B0:
0CopyLoc[2](Arg2: u128)
1LdU128(0)
2Gt
3BrFalse(5)
B1:
4Branch(7)
B2:
5LdConst[0](u64: 0)
6Abort
B3:
7MoveLoc[0](Arg0: u128)
8MoveLoc[1](Arg1: u128)
9Mul
10CopyLoc[2](Arg2: u128)
11LdU128(2)
12Div
13Add
14MoveLoc[2](Arg2: u128)
15Div
16Ret
}
 
Constants [
0 => u64: 0
]
}