mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
spqlios basic wrapper
This commit is contained in:
10
spqlios/lib/test/testlib/test_commons.cpp
Normal file
10
spqlios/lib/test/testlib/test_commons.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "test_commons.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, __int128_t x) {
|
||||
char c[35] = {0};
|
||||
snprintf(c, 35, "0x%016" PRIx64 "%016" PRIx64, uint64_t(x >> 64), uint64_t(x));
|
||||
return out << c;
|
||||
}
|
||||
std::ostream& operator<<(std::ostream& out, __uint128_t x) { return out << __int128_t(x); }
|
||||
Reference in New Issue
Block a user