MCPcopy Create free account
hub / github.com/apache/orc / isLittleEndian

Function isLittleEndian

c++/src/Geospatial.cc:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 static bool isLittleEndian() {
60 static union {
61 uint32_t i;
62 char c[4];
63 } num = {0x01020304};
64 return num.c[0] == 4;
65 }
66
67#if defined(_MSC_VER)
68#include <intrin.h> // IWYU pragma: keep

Callers 1

mergeGeometryInternalMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected