Comment by anfilt
3 years ago
I agree for instance gcc's vector size attribute works just fine in C. For instance I could declare a type like this:
typedef uint32_t myVec __attribute__((vector_size(16)));
and then when using that type in C, gcc alot times will do a great job vectorizing without having to reach towards intrinsics when looking at the generated code.
Sure it's not standard C, but it still feel like C when using them. Even for things like shuffling it's still pretty logical to just treat it as a function for instance "__builtin_shuffle" that gcc provides to use on those vector types.
The semantics of C can handle such things, it's just not standardized if you get what I am saying. So I get what your saying about the PDP-11.
No comments yet
Contribute on Hacker News ↗