[QUESTION] Struct deserialization #1884
-
Hello there!
I need to convert array of uint32.
The scalar maximum approach is optimized by a single xmm0 (the lastest msvc). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 19 replies
-
Hi
|
Beta Was this translation helpful? Give feedback.
-
As you can see, the code is not ideal at all. As I understand, I need to align the address of raw_data, load to wide all bytes, and store it with mask and condition. I've tried to find how can I do it, didn't find any examples. In this example, I need to ignore first aligned bytes before raw_data address, then ignore every byte (bi % sizeof(raw_face) == 0), and also do not forget about right align border. Could you provide some examples, please? Should I use shuffle in this case, or any alternatives exsist? |
Beta Was this translation helpful? Give feedback.
-
Can you confirm that this is this the loop you want? https://godbolt.org/z/748andb4c |
Beta Was this translation helpful? Give feedback.
-
FYI |
Beta Was this translation helpful? Give feedback.
I think pseudo-code causes some confusion, let's figure out the problem first and then I will hopefully be able to tell you how to solve it.
Can you confirm that this is this the loop you want? https://godbolt.org/z/748andb4c