3 ms·
Did you try inline as well? Why are they not as flexible as the macro? Couldn't the swap not also process two arrays?
by uecker 4y ago
Did you try inline as well? Why are they not as flexible as the macro? Couldn't the swap not also process two arrays?
- syockit 4y agoThe function is already inlined because the implementation is visible. You can check the assembly, it has no calls to the compare and swap functions. I guess you're right, since the function accepts a void pointer, it could also point to an array of two array pointers. So yes, it can also process two arrays.