public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help with GCC function attributes
@ 2023-02-04 15:02 Martin Georgiev
  0 siblings, 0 replies; only message in thread
From: Martin Georgiev @ 2023-02-04 15:02 UTC (permalink / raw)
  To: gcc-help

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

Hi I need clarification about the assume_aligned and malloc function
attributes described here:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html

1) assume_aligned - The description is a bit ambiguous, I assume that an
aligned pointer means that the referenced address is aligned and not the
pointer itself. Am I correct?
2) malloc - Does the malloc attribute imply that the pointer returned by
the function is aligned to the standard malloc alignment or do I have to
separately specify an alignment via the assumed_aligned attribute.

Thanks in advance.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-04 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-04 15:02 Help with GCC function attributes Martin Georgiev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).