This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
However, after looking into the current public project I'm on, I realize that it doesn't use SSE for the allocation. It simply advances to an aligned location and manually forces the alignment, hides the actual allocation pointer, and returns the aligned pointer.
void * _mm_malloc (size_t size, size_t alignment) void _mm_free (void * ptr)
On Wed, 16 Feb 2005 17:58:15 +0100, Brian Budge <brian.budge@gmail.com> wrote:
On Wed, 16 Feb 2005 10:46:54 -0600, corey taylor <corey.taylor@gmail.com> wrote:Implementation's I've used and worked on always do aligned allocations manually. Typically the hidden and real sizes of the allocation are put into the memory allocation itself and the returned pointer is incremented a few bytes. The downside to this is that you must be strict in using the aligned free routine also.
On Wed, 16 Feb 2005 10:09:27 -0600, Eljay Love-Jensen <eljay@adobe.com> wrote:
>But surely thousands of people are writing sse code... how do they make it work?
I presume by taking measures to assure the SSE structs are properly aligned.
>Do I need to switch to the intel compiler/linker?
I do not know.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |