MCPcopy Create free account
hub / github.com/ARM-software/armnn / EndianSwap

Function EndianSwap

tests/MnistDatabase.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12constexpr int g_kMnistImageByteSize = 28 * 28;
13
14void EndianSwap(unsigned int &x)
15{
16 x = (x >> 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x << 24);
17}
18
19MnistDatabase::MnistDatabase(const std::string& binaryFileDirectory, bool scaleValues)
20 : m_BinaryDirectory(binaryFileDirectory)

Callers 1

GetTestCaseDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected