math_u256
Module0x8925…bce5
- Move path
- 0x91bf…9ca1::math_u256
- Functions
- 55 public, 0 entry
- Structs
- 0
- Friend modules
- None
math_u256
- fee4
- fee10000bps1
- fee100bps1
- fee3000bps1
- fee500bps1
- full_math_u1286
- full_math_u326
- full_math_u646
- i12831
- i3230
- i6428
- math_bit2
- math_liquidity7
- math_sqrt_price8
- math_swap3
- math_tick7
- math_u12817
- math_u2565
- math_u647
- pool87
- pool_factory21
- pool_fetcher1
- position_manager37
- position_nft5
- reward_manager8
- string_tools5
- swap_router13
Bytecode110 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module 91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1.math_u256 {
public div_mod(Arg0: u256, Arg1: u256): u256 * u256 {
L2: loc0: u256
L3: loc1: u256
B0:
0CopyLoc[0](Arg0: u256)
1CopyLoc[1](Arg1: u256)
2Div
3StLoc[2](loc0: u256)
4MoveLoc[0](Arg0: u256)
5CopyLoc[2](loc0: u256)
6MoveLoc[1](Arg1: u256)
7Mul
8Sub
9StLoc[3](loc1: u256)
10MoveLoc[2](loc0: u256)
11MoveLoc[3](loc1: u256)
12Ret
}
public shlw(Arg0: u256): u256 {
B0:
0MoveLoc[0](Arg0: u256)
1LdU8(64)
2Shl
3Ret
}
public shrw(Arg0: u256): u256 {
B0:
0MoveLoc[0](Arg0: u256)
1LdU8(64)
2Shr
3Ret
}
public checked_shlw(Arg0: u256): u256 * bool {
L1: loc0: u256
L2: loc1: bool
B0:
0CopyLoc[0](Arg0: u256)
1LdU256(6277101735386680763835789423207666416102355444464034512896)
2Ge
3BrFalse(9)
B1:
4LdU256(0)
5LdTrue
6StLoc[2](loc1: bool)
7StLoc[1](loc0: u256)
8Branch(15)
B2:
9MoveLoc[0](Arg0: u256)
10LdU8(64)
11Shl
12LdFalse
13StLoc[2](loc1: bool)
14StLoc[1](loc0: u256)
B3:
15MoveLoc[1](loc0: u256)
16MoveLoc[2](loc1: bool)
17Ret
}
public div_round(Arg0: u256, Arg1: u256, Arg2: bool): u256 {
L3: loc0: bool
L4: loc1: u256
L5: loc2: u256
B0:
0CopyLoc[0](Arg0: u256)
1CopyLoc[1](Arg1: u256)
2Div
3StLoc[5](loc2: u256)
4MoveLoc[2](Arg2: bool)
5BrFalse(13)
B1:
6CopyLoc[5](loc2: u256)
7MoveLoc[1](Arg1: u256)
8Mul
9MoveLoc[0](Arg0: u256)
10Neq
11StLoc[3](loc0: bool)
12Branch(15)
B2:
13LdFalse
14StLoc[3](loc0: bool)
B3:
15MoveLoc[3](loc0: bool)
16BrFalse(22)
B4:
17MoveLoc[5](loc2: u256)
18LdU256(1)
19Add
20StLoc[4](loc1: u256)
21Branch(24)
B5:
22MoveLoc[5](loc2: u256)
23StLoc[4](loc1: u256)
B6:
24MoveLoc[4](loc1: u256)
25Ret
}
Constants [
0 => u256: 340282366920938463463374607431768211455
1 => u256: 18446744073709551615
]
}