5 ms·
I know people don't like macros and pragmas, but unfortunately I have found that in cycle-sensitive code, they are really the way to go. I have found that with
by pclmulqdq 4y ago
I know people don't like macros and pragmas, but unfortunately I have found that in cycle-sensitive code, they are really the way to go. I have found that with judicious use of those tools, you can kind of write the code in a way that feels natural (and looks normal to a normal programmer), and still get what you need. It is still slightly scary, but a lot less scary than copy-pasting the same code over and over again.
- pjscott 4y agoStatic inline functions can often do the same thing with more type safety. (Not always, of course! But it’s worth thinking about when optimizing.)