search for: __uint_compare

Displaying 1 result from an estimated 1 matches for "__uint_compare".

2014 Sep 24
3
[LLVMdev] Loops Prevent Function Pointer Inlining?
Hi - I've been trying to track down why a function pointer isn't being inlined in some cases, and have nailed it down to the following repro: struct s { int (*cmp) (const void *, const void *); int its[2]; }; static int __uint_compare(const void *e1, const void *e2) { const int *i1 = e1; const int *i2 = e2; return *i2 - *i1; } int main() { struct s hp; hp.cmp = __uint_compare; hp.its[0] = 1; hp.its[1] = 2; for (int i = 0; i < 1; i++) { int cmp = hp.cmp(&hp.its[i], &hp.its[...