Cache auto vec
Auto-vectorise populating the cache with hints to the compiler and restrict
keyword.
Merge request reports
Activity
Also, and this is a matter of style so let me know what you think, could we call this macro something else ? It is not just giving information it is actually declaring a pointer.
How about:
#define swift_declare_aligned_ptr(type, array, ptr, alignment) \ ... swift_declare_aligned_ptr(float, x, cache->x, SWIFT_CACHE_ALIGNMENT);
I also prefer putting the type as the first argument of the macro. This way it looks even more like the declaration of a pointer which would read
float *x = cache->x;
Added 1 commit:
- 790b9ed9 - Remove compiler-specific conditions.
Unable to load the diff Makes sense, I think I just copy and pasted your version when I made mine. Fixed in 790b9ed9.
Added 1 commit:
- 58b06679 - Rename alignment macro.
Fixed in 58b06679.
mentioned in commit 1969a156
Please register or sign in to reply