1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math.big: implement big.integer in V (#11352)

This commit is contained in:
Subhomoy Haldar
2021-08-31 21:51:00 +05:30
committed by GitHub
parent f8aaf4bf67
commit dadfda9400
9 changed files with 1707 additions and 1297 deletions

16
vlib/math/big/big.v Normal file
View File

@@ -0,0 +1,16 @@
module big
pub const (
zero_int = Integer{
digits: []u32{len: 0}
signum: 0
}
one_int = Integer{
digits: [u32(1)]
signum: 1
}
two_int = Integer{
digits: [u32(2)]
signum: 1
}
)