# Pack big.Int sign and length fields · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/78af62a19a87904193c59f46ac554330ba872564)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 78af62a19a87904193c59f46ac554330ba872564

Requested commit: 78af62a19a87904193c59f46ac554330ba872564

Commit: 78af62a19a87904193c59f46ac554330ba872564

Tree: af89875455723e0ec9bd2d3f1159b85258054d30

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
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.

```

## Parents

- [87d8ecda462688c597c726b1da5dbd5f8478e0fc](https://git.cafe/gitcafe/zig/commit/87d8ecda462688c597c726b1da5dbd5f8478e0fc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/78af62a19a87904193c59f46ac554330ba872564?format=markdown)
