Tasmota/lib/lib_div/ams/ntohll.cpp

5 lines
120 B
C++
Raw Normal View History

#include "ntohll.h"
uint64_t ntohll(uint64_t x) {
return (((uint64_t)ntohl((uint32_t)x)) << 32) + ntohl(x >> 32);
}