# Aligning a memory for SSE (AVX)

**URL:** <https://forums.unrealengine.com/t/aligning-a-memory-for-sse-avx/391256>\
**Category:** C++\
**Tags:** align, unreal-engine, CPP, question\
**Created:** [April 18, 2017, 7:52pm UTC](https://forums.unrealengine.com/t/aligning-a-memory-for-sse-avx/391256 "2017-04-18T19:52:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_95ce03cf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_95ce03cf](https://forums.unrealengine.com/u/anonymous_user_95ce03cf)\
**Post date:** [April 18, 2017, 7:52pm UTC](https://forums.unrealengine.com/t/aligning-a-memory-for-sse-avx/391256/1 "2017-04-18T19:52:34Z")

</div>

I’m curious which way is general way to aligning a memory for the SSE(AVX) and intrinsic in C++

I usually using just simple alignas() but I’m hesitating to using in this way.

Therefore I’d like to know which way is general or best to align memory for UE4?

Thank you!

---

<div class="post-metadata">

**Author:** ![Muelas.Aitzol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muelas.Aitzol](https://forums.unrealengine.com/u/Muelas.Aitzol)\
**Post date:** [April 20, 2017, 10:32am UTC](https://forums.unrealengine.com/t/aligning-a-memory-for-sse-avx/391256/2 "2017-04-20T10:32:24Z")

</div>

What exactly are you trying to align? Loads? Allocated memory?
