nemequ / hedley

A C/C++ header to help move #ifdefs out of your code
https://nemequ.github.io/hedley/
Creative Commons Zero v1.0 Universal
774 stars 51 forks source link

Prefetch #31

Open nemequ opened 4 years ago

nemequ commented 4 years ago

I added a HEDLEYX_PREFETCH macro in the experiments branch.

The reason it's not in Hedley right now is that some of the headers we would have to include (xmmintrin.h for SSE, arm_acle.h for ACLE… sun_prefetch.h for ODS isn't really a big deal) are pretty heavy and I'm not sure about the idea of pulling them in unconditionally for a macro I'm not even sure is all that useful.

If anyone has an opinion on including the macro in Hedley I'd be interested, especially if someone wants to do some testing on non-x86 since I have a feeling prefetching may be more important there.