MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / writeLE

Method writeLE

lib/Bytecode/Writer/BytecodeWriter.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101 template <typename T>
102 std::enable_if_t<std::is_integral<T>::value, void> writeLE(T value) {
103 for (size_t i = 0; i < sizeof(T); ++i) {
104 writeByte(value & 0xFF);
105 // Only shift if there are more bytes to process
106 if (sizeof(T) > 1 && i < sizeof(T) - 1)
107 value >>= 8;
108 }
109 }
110
111 template <typename T>
112 void writeLE(ArrayRef<T> values) {

Callers 1

writeHeaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected