Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ isNetworkOrder
Function
isNetworkOrder
include/singa/io/integer.h:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
27
namespace singa{
28
static bool isNetworkOrder() {
29
int test = 1;
30
return (1 != *(uint8_t*)&test);
31
}
32
33
template <typename T>
34
static inline T byteSwap(const T& v) {
Callers
1
hton
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected