MCPcopy Create free account
hub / github.com/crownengine/crown / swap

Function swap

3rdparty/bx/src/bx.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void swap(void* _a, void* _b, size_t _numBytes)
95 {
96 uint8_t* lhs = (uint8_t*)_a;
97 uint8_t* rhs = (uint8_t*)_b;
98 const uint8_t* end = rhs + _numBytes;
99 while (rhs != end)
100 {
101 swap(*lhs++, *rhs++);
102 }
103 }
104
105 void memCopyRef(void* _dst, const void* _src, size_t _numBytes)
106 {

Callers 15

quickSortRFunction · 0.70
uniqueFunction · 0.70
reverseFunction · 0.70
emit_instructionMethod · 0.50
reorder_type_aliasMethod · 0.50
to_struct_memberMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected