FLINT3.7.0-dev

fmpz_set_signed_uiui, fmpz_set_signed_uiuiui

Synopsis#include <flint/fmpz.h>
void fmpz_set_signed_uiui(fmpz_t r, ulong hi, ulong lo)source
void fmpz_set_signed_uiuiui(fmpz_t r, ulong hi, ulong mid, ulong lo)source

Set r to the integer whose two's complement representation with 2\mathtt{FLINT\_BITS} (respectively 3\mathtt{FLINT\_BITS}) bits is hi, lo (respectively hi, mid, lo), the most significant word first. These convert the results of double-word signed arithmetic such as smul_ppmm.

Guides#

Cite this page

The FLINT team, “fmpz_set_signed_uiui, fmpz_set_signed_uiuiui (fmpz.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz/fmpz_set_signed_uiui.html (generated 2026-10-20).