DATA-ORIENTED DESIGN The hardware will thank you.
If you wish to submit an article, please contact firstname.lastname@example.org for details.
One more reason why C++ classes can cause problems 12/11/2011:13:34:52the static keyword has three different meanings based on how it's used.
Though this post
doesn't appear to be written by someone who knows why these things are true, the first item:
#1. Declare as static functions that are not used outside the file where they are defined
Declaring a function as static forces an internal linkage within that file, which can improve the performance of the code. Functions that are not declared as static default to external linkage, which may inhibit certain optimizations, such as aggressive inlining, with some C/C++ compilers.
This implies that because all class member functions are global scope, they potentially suffer the same optimisation limitation. Good old C++.
Also, ignore point 5, you should always be using bitwise operators for such trivial logic.