Hi,
Please review the code, and tell me what you think, if you have time at
least.
I changed the datatype for the numbers in the mp-core from int[] to a
structure MPNumber, defined as
typedef struct {
/* if sign == 0, then whole MPNumber is zero. Otherwise sign == 1 or
-1 */
int sign;
int exp;
int mant[MP_SIZE-2];
/* I believe exp == 1 is integer ... or is exp == 0 already large
enough */
} MPNumber;
The program does not yet compile cleanly (lots of warnings about wrong
pointer types), because I did not yet complete the transition of all of
the code. But the unittests still work as before (three functions still
fail, the others give ok).
Cheers
KlausAttachment:
MPNumber_structure.patch.bz2
Description: application/bzip