You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
544 B
28 lines
544 B
#include "table.h"
|
|
|
|
|
|
#ifdef __SIZEOF_INT128__
|
|
template <>
|
|
void print<__int128_t>(const __int128_t& v, const char* delimiter){
|
|
char s[41];
|
|
s[40] = 0;
|
|
std::cout<< get_int128str(v, s+40);
|
|
}
|
|
template <>
|
|
void print<__uint128_t>(const __uint128_t&v, const char* delimiter){
|
|
char s[41];
|
|
s[40] = 0;
|
|
std::cout<< get_uint128str(v, s+40);
|
|
|
|
}
|
|
std::ostream& operator<<(std::ostream& os, __int128 & v)
|
|
{
|
|
print(v);
|
|
return os;
|
|
}
|
|
std::ostream& operator<<(std::ostream& os, __uint128_t & v)
|
|
{
|
|
print(v);
|
|
return os;
|
|
}
|
|
#endif |