- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to align array of floats to 128 bit in intel 4.5
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear eltalkhawy
A 16-byte alignment can be enforced as follows, but I don't even remember if we
supported this in 4.5 already. Please consider upgrading.
A 16-byte alignment can be enforced as follows, but I don't even remember if we
supported this in 4.5 already. Please consider upgrading.
__declspec(align(16)) float myfloats[100];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the compiler doesn't recognize the statment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear eltalkhawy,
I was already afraid that feature does not go back all the way to 4.5. If you are unwilling to usemore recent compilers, you can always write your own dynamic memory allocation that forces a16-byte alignment at runtime. Will that work for you? By the way, giving some details on what exactly you are trying to achieve with the alignment mayhelp usto give more useful advice.
Aart Bik
http://www.aartbik.com/
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page