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

API

math_safe_precise

Module0x40fc…5bb2
Move path
0xed6c…9f32::math_safe_precise
Functions
22 public, 0 entry
Structs
0
Friend modules
None
math_safe_precise

Bytecode52 lines

The on-chain disassembly. Offsets are bytecode positions within each function.

// Move bytecode v6
module ed6c6fe0732be937f4379bc0b471f0f6bfbe0e8741968009e0f01e6de3d59f32.math_safe_precise {
use ed6c6fe0732be937f4379bc0b471f0f6bfbe0e8741968009e0f01e6de3d59f32::math_u128;
 
public mul_div(Arg0: u64, Arg1: u64, Arg2: u64): u64 {
B0:
0MoveLoc[0](Arg0: u64)
1CastU128
2MoveLoc[1](Arg1: u64)
3CastU128
4Mul
5MoveLoc[2](Arg2: u64)
6CastU128
7Div
8CastU64
9Ret
}
 
public quadratic(Arg0: u64, Arg1: u64, Arg2: u64, Arg3: u64): u64 {
B0:
0CopyLoc[0](Arg0: u64)
1CastU128
2LdU128(2)
3Call math_u128::exp(u128, u128): u128
4LdConst[1](u128: 4294..)
5Div
6MoveLoc[1](Arg1: u64)
7CastU128
8Mul
9LdConst[1](u128: 4294..)
10Div
11MoveLoc[2](Arg2: u64)
12CastU128
13MoveLoc[0](Arg0: u64)
14CastU128
15Mul
16LdConst[1](u128: 4294..)
17Div
18Add
19MoveLoc[3](Arg3: u64)
20CastU128
21Add
22CastU64
23Ret
}
 
Constants [
0 => u64: 4294967296
1 => u128: 4294967296
]
}