3 ms·
In the wiki an int compare(int * , int * ) function [1] is used, which is odd if the elements are not pointers (when P is defined). Shouldn't it be changed to i
by teabee89 6y ago
In the wiki an int compare(int * , int * ) function [1] is used, which is odd if the elements are not pointers (when P is defined). Shouldn't it be changed to int compare(int, int) when P is defined? I wonder if it impacts at all the benchmarks.
[1] https://github.com/glouw/ctl/blob/49b90312f9473057fd2ed77941f8a926429d44be/ctl/vec.h#L269 https://github.com/glouw/ctl/blob/49b90312f9473057fd2ed77941...
- glouwbug 6y agoThe compare nomenclature is a one size fits all, given larger structs require a pointer to prevent large amount of copies. Think of qsorts compare, which uses two void* arguments.