optimized the division a bit

removed moo_log2_for_pow2() and created similar macros local to bigint.c
This commit is contained in:
hyunghwan.chung
2019-03-24 18:49:16 +00:00
parent f126013747
commit 983026c774
4 changed files with 218 additions and 75 deletions

View File

@ -250,10 +250,18 @@ extend MyObject
[ (-9p10.123 scale) = (-10.123000000 scale) ],
[ (+3p100.1 + 16rffff + +5p1.22 + -5p1.223) = 65635.09700 ],
## 80-84
## 90-94
[ (30p2123.12 asString) = '2123.120000000000000000000000000000' ],
[ (+30p2123.12 asString) = '2123.120000000000000000000000000000' ],
[ (-30p2123.12 asString) = '-2123.120000000000000000000000000000' ],
[ (811306333091350399588761 div: 16) = 50706645818209399974297 ],
[ (811306333091350399588761 rem: 16) = 9 ],
## 95-99
[ (811306333091350399588761 mod: 16) = 9 ],
[ (811306333091350399588761 div: 128) = 6338330727276174996787 ],
[ (811306333091350399588761 rem: 128) = 25 ],
[ (811306333091350399588761 mod: 128) = 25 ],
## =========================
[