constexpr vs constexpr inline vs define – Optimizing generic utility functions in C and C++
I have a simple function that I compile for C
in my operating code and for C++
in my tests. Since I’ll use this function extensively in my code, I’d like to declare it in a utility file and make it as efficient as possible.