blob: 06b481d770e76fb8cf780b879fc046fac85ccfde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
This directory contains functions for GMP's integer function layer.
In this version of GMP, integers are represented like in the figure below.
(Please note that the format might change between every version, and that
depending on the internal format in any way is a bad idea.)
most least
significant significant
limb limb
_mp_d
/
/
\/
____ ____ ____ ____ ____
|____|____|____|____|____|
<------- _mp_size ------->
The most significant limb will be non-zero. The _mp_size field's sign
reflects the sign of the number. Its absolute value is the count of limbs
in the number.
|