|
|
@ -150,20 +150,20 @@ inline std::string read_file(std::string file_name){
|
|
|
|
|
|
|
|
|
|
|
|
inline void PrettyPrintUINT64(uint64_t i, std::stringstream* ss) {
|
|
|
|
inline void PrettyPrintUINT64(uint64_t i, std::stringstream* ss) {
|
|
|
|
|
|
|
|
|
|
|
|
*ss << "[" << std::bitset<15>(i) << "]";
|
|
|
|
//*ss << "[" << std::bitset<15>(i) << "]";
|
|
|
|
*ss << "[" << std::bitset<1>(i >> 15) << "]";
|
|
|
|
//*ss << "[" << std::bitset<1>(i >> 15) << "]";
|
|
|
|
*ss << "[" << std::bitset<8>(i >> 16) << "]";
|
|
|
|
//*ss << "[" << std::bitset<8>(i >> 16) << "]";
|
|
|
|
*ss << "[" << std::bitset<8>(i >> 24) << "]";
|
|
|
|
//*ss << "[" << std::bitset<8>(i >> 24) << "]";
|
|
|
|
*ss << "[" << std::bitset<32>(i >> 32) << "]\n";
|
|
|
|
//*ss << "[" << std::bitset<32>(i >> 32) << "]\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void PrettyPrintUINT64(uint64_t i) {
|
|
|
|
inline void PrettyPrintUINT64(uint64_t i) {
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "[" << std::bitset<15>(i) << "]";
|
|
|
|
//std::cout << "[" << std::bitset<15>(i) << "]";
|
|
|
|
std::cout << "[" << std::bitset<1>(i >> 15) << "]";
|
|
|
|
//std::cout << "[" << std::bitset<1>(i >> 15) << "]";
|
|
|
|
std::cout << "[" << std::bitset<8>(i >> 16) << "]";
|
|
|
|
//std::cout << "[" << std::bitset<8>(i >> 16) << "]";
|
|
|
|
std::cout << "[" << std::bitset<8>(i >> 24) << "]";
|
|
|
|
//std::cout << "[" << std::bitset<8>(i >> 24) << "]";
|
|
|
|
std::cout << "[" << std::bitset<32>(i >> 32) << "]" << std::endl;
|
|
|
|
//std::cout << "[" << std::bitset<32>(i >> 32) << "]" << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void DumpLog(std::stringstream* ss, std::string file_name) {
|
|
|
|
inline void DumpLog(std::stringstream* ss, std::string file_name) {
|
|
|
|