Skip to contentSkip to conversation

uint8_t mean8[8] __attribute__ ((aligned (32))), *mp;

DISCUSSION Ankit Jain 2 participants 2 messages Nov 26, 2004 – Nov 27, 2004

lore
Share & tools
lore

Ankit Jain

author
#0 lore raw

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 12 lines · Ankit Jain

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

Signature · 6 lines
Manish Regmi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs