Re: [eigen] glibc's malloc (x86-64) 16 byte aligned? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] glibc's malloc (x86-64) 16 byte aligned?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 25 Jan 2010 12:57:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=z536nrhE6+QFgGQvSNJyggZYk/FQ2fM+xPF2JR4N1lk=; b=SAMmXMcDrmm5OSm5UFF6kC/j2mZwljwLLDCmc3xkUdU4zp6xEA5JZS1Cl9Oi288D0p pKUBFBh5rCbf18PhgZjo1XaR7wcGyNOxAT8TmiXOE/4LKaOh+lg1xdjCZLLaMIiT1pFf //t1oHif8aRymTZeNBe9p5/bfW59/JH6fpnWE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=akhTkR9EH6FwZtseKn1ZyAoMZO0tbxNbDAzJbq5SwSClfo/oZXHPstWwQtomksUpwW 7maAHoLwSmzWEnK+vp9CJ7cDmNwqsIenwY/3+Ze9aCkv9Z0G8kQA/1KQ+I3zb4EQgNjO Tz7Y5KD2DJ1LcYp8SfEB0NRetfAwCRqceORCM=
I don't understand?
on linux x86-64, malloc only returns 8-byte aligned pointers, and this
page confirms it.
Benoit
2010/1/25 Rohit Garg <rpg.314@xxxxxxxxx>:
> Hi all,
>
> http://www.gnu.org/s/libc/manual/html_node/Aligned-Memory-Blocks.html
>
> I was quite surprised to come across this. I never knew this was the
> case. I wrote a quick, dirty, non-comprehensive, non-exhaustive test
> and all of the malloc'ed pointers were 16 byte aligned.
>
> May be it's worth trying to run the eigen's test suite on linux x86-64
> assuming that the malloc is 16 byte aligned?
>
> Your thoughts?
>
> --
> Rohit Garg
>
> http://rpg-314.blogspot.com/
>
> Senior Undergraduate
> Department of Physics
> Indian Institute of Technology
> Bombay
>
>
>