Leonardus
|
Algorithms. More...
#include <string>
#include <cstdint>
#include <gmp.h>
Go to the source code of this file.
Namespaces | |
namespace | algo |
Collection of numeric algorithms. | |
Functions | |
__int128 | algo::xgcd (__int128 p_a, __int128 p_b, __int128 &p_s, __int128 &p_t) |
Extended Euclidean algorithm. More... | |
bool | algo::isint128 (std::string p_str) |
Is the string a 128 bit integer. More... | |
bool | algo::isint128 (const mpz_t p_x) |
Is the multiple precision integer a 128 bit integer. More... | |
int32_t | algo::rand (uint32_t *seed) |
ISO C rand_r() for 32 bit. More... | |
Algorithms.
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/.