File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Added by cargo
22/sui /.idea
33/aptos /.idea
4+ /aptos /.aptos
45/sui /build
56/aptos /build
67/build
Original file line number Diff line number Diff line change @@ -3,4 +3,12 @@ name = 'IntegerMate'
33version = ' 1.0.0'
44
55[addresses ]
6+ std = " 0x1"
7+ aptos_std = " 0x1"
8+ aptos_framework = " 0x1"
69integer_mate = " _"
10+
11+ [dependencies .MoveStdlib ]
12+ git = " https://github.com/aptos-labs/aptos-core.git"
13+ subdir = " aptos-move/framework/move-stdlib"
14+ rev = " devnet"
Original file line number Diff line number Diff line change 11module integer_mate ::math_u256 {
2- const MASK_U128 : u256 = 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff ;
3- const MASK_U64 : u256 = 0x000000000000000000000000000000000000000000000000ffffffffffffffff ;
4-
52 public fun div_mod (num: u256 , denom: u256 ): (u256 , u256 ) {
63 let p = num / denom;
74 let r: u256 = num - (p * denom);
@@ -43,4 +40,4 @@ module integer_mate::math_u256 {
4340 fun test_add () {
4441 1000u256 + 1000u256 ;
4542 }
46- }
43+ }
You can’t perform that action at this time.
0 commit comments