All of lore.kernel.org
 help / color / mirror / Atom feed
* uint8_t  mean8[8] __attribute__ ((aligned (32))), *mp;
@ 2004-11-26  6:18 Ankit Jain
  2004-11-27  3:01 ` Glynn Clements
  2004-11-27 10:08 ` Jan-Benedict Glaw
  0 siblings, 2 replies; 6+ messages in thread
From: Ankit Jain @ 2004-11-26  6:18 UTC (permalink / raw)
  To: linux prg

if somebody can tell me what attribute is aligned here

 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 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; 6+ 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] 6+ messages in thread

* uint8_t  mean8[8] __attribute__ ((aligned (32))), *mp;
@ 2004-11-26 18:40 Ankit Jain
  0 siblings, 0 replies; 6+ 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: uint8_t  mean8[8] __attribute__ ((aligned (32))), *mp;
  2004-11-26  6:18 Ankit Jain
@ 2004-11-27  3:01 ` Glynn Clements
  2004-11-27 10:08 ` Jan-Benedict Glaw
  1 sibling, 0 replies; 6+ messages in thread
From: Glynn Clements @ 2004-11-27  3:01 UTC (permalink / raw)
  To: Ankit Jain; +Cc: linux prg


Ankit Jain wrote:

> if somebody can tell me what attribute is aligned here
> 
>  uint8_t  mean8[8] __attribute__ ((aligned (32))),
> *mp;

The start of the array mean8 will be aligned to a 32-byte boundary.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 6+ 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; 6+ 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] 6+ messages in thread

* Re: uint8_t  mean8[8] __attribute__ ((aligned (32))), *mp;
  2004-11-26  6:18 Ankit Jain
  2004-11-27  3:01 ` Glynn Clements
@ 2004-11-27 10:08 ` Jan-Benedict Glaw
  1 sibling, 0 replies; 6+ messages in thread
From: Jan-Benedict Glaw @ 2004-11-27 10:08 UTC (permalink / raw)
  To: linux prg

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

On Fri, 2004-11-26 06:18:31 +0000, Ankit Jain <ankitjain1580@yahoo.com>
wrote in message <20041126061831.5905.qmail@web52903.mail.yahoo.com>:
> if somebody can tell me what attribute is aligned here
> 
>  uint8_t  mean8[8] __attribute__ ((aligned (32))),
> *mp;

gcc's info page tells that the mean8[] array will start at a byte that
can be devided by 32.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-27 10:08 UTC | newest]

Thread overview: 6+ 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
  -- strict thread matches above, loose matches on Subject: below --
2004-11-26 18:40 Ankit Jain
2004-11-26  6:18 Ankit Jain
2004-11-27  3:01 ` Glynn Clements
2004-11-27 10:08 ` Jan-Benedict Glaw

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.