clang-format
This commit is contained in:
@@ -34,20 +34,18 @@
|
||||
|
||||
#ifdef NEED_NTOHLL
|
||||
|
||||
uint64_t
|
||||
ntohll(uint64_t x)
|
||||
{
|
||||
uint32_t x0, x1, y0, y1;
|
||||
uint64_t ntohll(uint64_t x) {
|
||||
uint32_t x0, x1, y0, y1;
|
||||
|
||||
if (ntohl(1) == 1) {
|
||||
return x;
|
||||
}
|
||||
if (ntohl(1) == 1) {
|
||||
return x;
|
||||
}
|
||||
|
||||
x0 = x & 0xffffffff;
|
||||
y0 = ntohl(x0);
|
||||
x1 = x >> 32;
|
||||
y1 = ntohl(x1);
|
||||
return ((uint64_t)y0 << 32) | y1;
|
||||
x0 = x & 0xffffffff;
|
||||
y0 = ntohl(x0);
|
||||
x1 = x >> 32;
|
||||
y1 = ntohl(x1);
|
||||
return ((uint64_t)y0 << 32) | y1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user