Skip to content

Commit 774c200

Browse files
committed
Pack big.Int sign and length fields
This effectively takes one-bit from the length field and uses it as the sign bit. It reduces the size of an Int from 40 bits to 32 bits on a 64-bit arch. This also reduces std.Rational from 80 bits to 64 bits.
1 parent 9b0d5d9 commit 774c200

File tree

2 files changed

+199
-181
lines changed

2 files changed

+199
-181
lines changed

0 commit comments

Comments
 (0)