|
Leonardus
|
Initialization of global GMP type constants. More...
Include dependency graph for gmpconst.cpp:Functions | |
| void | gmpconst_init () |
| Initializes MPZ_ global pseudo-constants. | |
| void | gmpconst_clear () |
| Clears MPZ_ global pseudo-constants. | |
Variables | |
| mpz_t | MPZ_ZERO |
| mpz_t 0 is initialized by gmpconst_init(). | |
| mpz_t | MPZ_ONE |
| mpz_t 1 is initialized by gmpconst_init(). | |
| mpz_t | MPZ_INT128_MIN |
| mpz_t -2^127 is initialized by gmpconst_init(). | |
| mpz_t | MPZ_INT128_MAX |
| mpz_t 2^127-1 is initialized by gmpconst_init(). | |
Initialization of global GMP type constants.
Leonardus, a minimalist stack-based programming system. Copyright (C) 2025 Andreas Muckenschnabel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
| void gmpconst_init | ( | ) |
Initializes MPZ_ global pseudo-constants.
Since GMP has no static initialization, we use this style of initialization.