* uint8_t mean8[8] __attribute__ ((aligned (32))), *mp;
@ 2004-11-26 18:40 Ankit Jain
2004-11-27 7:39 ` Manish Regmi
0 siblings, 1 reply; 2+ messages in thread
From: Ankit Jain @ 2004-11-26 18:40 UTC (permalink / raw)
To: newbie
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
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: uint8_t mean8[8] __attribute__ ((aligned (32))), *mp;
2004-11-26 18:40 uint8_t mean8[8] __attribute__ ((aligned (32))), *mp; Ankit Jain
@ 2004-11-27 7:39 ` Manish Regmi
0 siblings, 0 replies; 2+ messages in thread
From: Manish Regmi @ 2004-11-27 7:39 UTC (permalink / raw)
To: Ankit Jain; +Cc: linux-newbie
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-27 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-26 18:40 uint8_t mean8[8] __attribute__ ((aligned (32))), *mp; Ankit Jain
2004-11-27 7:39 ` Manish Regmi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox