Quantcast
Channel: compiler optimization – Jens Gustedt's Blog
Viewing all articles
Browse latest Browse all 4

inline functions as good as templates

$
0
0
I recently started to implement parts of the “Bounds checking interfaces” of C11 (Annex K) for P99 and observed a nice property of my implementation of qsort_s. Since for P99 basically all functions are inlined, my compilers (gcc and clang) are able to integrate the comparison functions completely into the sorting code, just as an … Continue reading "inline functions as good as templates"

Viewing all articles
Browse latest Browse all 4

Trending Articles