Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
net.hpp
Go to the documentation of this file.
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
10inline bool is_little_endian()
11{
12 constexpr int num = 42;
13 // NOLINTNEXTLINE Nope. nope nope nope nope nope.
14 return (*(char*)&num == 42);
15}
bool is_little_endian()
Definition net.hpp:10