From: Manish Regmi <regmi.manish@gmail.com>
To: Ankit Jain <ankitjain1580@yahoo.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: uint8_t mean8[8] __attribute__ ((aligned (32))), *mp;
Date: Sat, 27 Nov 2004 13:24:09 +0545 [thread overview]
Message-ID: <652016d304112623391e36a202@mail.gmail.com> (raw)
In-Reply-To: <20041126184015.11326.qmail@web52906.mail.yahoo.com>
On Fri, 26 Nov 2004 18:40:15 +0000 (GMT), Ankit Jain
<ankitjain1580@yahoo.com> wrote:
> if somebody can tell me what this __attribute__ is
> doing
>
> what kind of alignement is this
>
> uint8_t mean8[8] __attribute__ ((aligned (32))),
> *mp;
>
> thanks
>
> ankit jain
>
__attribute__ and aligned() are a gcc builtin.
aligned(32) generates 32 byte aligned address. so that data is stored
on 32 byte aligned address.
This is done for performance reasons.
see gcc manual for more details.
regards manish
--
Manish Regmi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2004-11-27 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 18:40 uint8_t mean8[8] __attribute__ ((aligned (32))), *mp; Ankit Jain
2004-11-27 7:39 ` Manish Regmi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=652016d304112623391e36a202@mail.gmail.com \
--to=regmi.manish@gmail.com \
--cc=ankitjain1580@yahoo.com \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox