barretenberg
Loading...
Searching...
No Matches
src
barretenberg
common
net.hpp
1
#pragma once
2
3
#if defined(__linux__) || defined(__wasm__)
4
#include <arpa/inet.h>
5
#include <endian.h>
6
#define ntohll be64toh
7
#define htonll htobe64
8
#endif
9
10
inline
bool
is_little_endian()
11
{
12
constexpr
int
num = 42;
13
// NOLINTNEXTLINE Nope. nope nope nope nope nope.
14
return
(*(
char
*)&num == 42);
15
}
Generated by
1.9.6