more info about slong and ulong

This commit is contained in:
Fredrik Johansson 2016-03-02 11:35:32 +01:00
parent 1856b858b7
commit 18baebf905

View file

@ -20,6 +20,8 @@ in practice, FLINT defines *slong* and *ulong* types which are guaranteed
to be 32 bits on a 32-bit system and 64 bits on a 64-bit system.
They are also guaranteed to have the same size as GMP's :type:`mp_limb_t`.
GMP builds with a different limb size configuration are not supported at all.
For convenience, the macro *FLINT_BITS* specifies the word length (32 or 64)
of the system.
.. type:: slong
@ -29,6 +31,9 @@ GMP builds with a different limb size configuration are not supported at all.
In method names, an *slong* parameter is denoted by *si*, for example
:func:`arb_add_si`.
The constants *WORD_MIN* and *WORD_MAX* give the range of this type.
This type can be printed with *flint_printf* using the format string ``%wd``.
.. type:: ulong
The *ulong* type is used for integer-valued coefficients
@ -37,6 +42,9 @@ GMP builds with a different limb size configuration are not supported at all.
In method names, a *ulong* parameter is denoted by *ui*, for example
:func:`arb_add_ui`.
The constant *UWORD_MAX* gives the range of this type.
This type can be printed with *flint_printf* using the format string ``%wu``.
The following GMP-defined types are used in methods that manipulate the
internal representation of numbers (using limb arrays).