1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

expansion analyzer now can use libgmp for better analysis

This commit is contained in:
Zeno Rogue
2020-07-05 00:53:02 +02:00
parent 2d7571034b
commit 6f2e7e90d5
4 changed files with 116 additions and 30 deletions

View File

@@ -417,6 +417,12 @@ EX string as_cstring(string o) {
#endif
#endif
#if CAP_GMP
EX string its(mpq_class x) { std::stringstream ss; ss << x; return ss.str(); }
EX void print(hstream& hs, const mpq_class& x) {
std::stringstream ss; ss << x; print(hs, ss.str());
}
#endif
#if HDR
template<class... T> string lalign(int len, T... t) {