line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#pragma once |
2
|
|
|
|
|
|
|
#include |
3
|
|
|
|
|
|
|
#include |
4
|
|
|
|
|
|
|
#include |
5
|
|
|
|
|
|
|
#include |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
namespace panda { |
8
|
|
|
|
|
|
|
inline bool likely (bool expr) { return __builtin_expect(expr,1); } |
9
|
20068
|
|
|
|
|
|
inline bool unlikely (bool expr) { return __builtin_expect(expr,0); } |
10
|
|
|
|
|
|
|
}; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
namespace panda { namespace lib { |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
char* itoa (int64_t i); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
inline uint64_t string_hash (const char* str, size_t len) { return hash64(str, len); } |
17
|
|
|
|
|
|
|
inline uint64_t string_hash (const char* str) { return string_hash(str, std::strlen(str)); } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
inline uint32_t string_hash32 (const char* str, size_t len) { return hash32(str, len); } |
20
|
|
|
|
|
|
|
inline uint32_t string_hash32 (const char* str) { return string_hash32(str, std::strlen(str)); } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
char* crypt_xor (const char* source, size_t slen, const char* key, size_t klen, char* dest = NULL); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
}}; |