mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-19 05:23:00 +01:00
Cleanup.
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
|
||||
namespace bx
|
||||
{
|
||||
void xchg(void* _a, void* _b, size_t _numBytes)
|
||||
void swap(void* _a, void* _b, size_t _numBytes)
|
||||
{
|
||||
uint8_t* lhs = (uint8_t*)_a;
|
||||
uint8_t* rhs = (uint8_t*)_b;
|
||||
const uint8_t* end = rhs + _numBytes;
|
||||
while (rhs != end)
|
||||
{
|
||||
xchg(*lhs++, *rhs++);
|
||||
swap(*lhs++, *rhs++);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user