From: Andreas Schwab <schwab@linux-m68k.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Paul Eggert <eggert@cs.ucla.edu>,
fabrice.popineau@gmail.com, emacs-devel@gnu.org
Subject: Re: Emacs-26 threads problem [win64]
Date: Sun, 15 Oct 2017 17:39:38 +0200 [thread overview]
Message-ID: <874lr0zah1.fsf@linux-m68k.org> (raw)
In-Reply-To: <83mv4sh298.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 15 Oct 2017 18:14:27 +0300")
On Okt 15 2017, Eli Zaretskii <eliz@gnu.org> wrote:
> OOC, when a program does
>
> struct foo *ptr = malloc (sizeof struct foo);
>
> how is the alignment of the resulting pointer arranged to be "the
> maximum of the struct members"?
RTFM:
The malloc() and calloc() functions return a pointer to the allocated
memory, which is suitably aligned for any built-in type.
If you need non-standard alignment, see aligned_alloc(3).
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2017-10-15 15:39 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 19:48 Emacs-26 threads problem [win64] Fabrice Popineau
2017-10-10 6:25 ` Eli Zaretskii
2017-10-10 16:13 ` Fabrice Popineau
2017-10-10 16:30 ` Eli Zaretskii
2017-10-10 16:48 ` Eli Zaretskii
2017-10-10 18:57 ` Fabrice Popineau
2017-10-10 19:39 ` Eli Zaretskii
2017-10-10 19:58 ` Fabrice Popineau
2017-10-10 20:09 ` Eli Zaretskii
2017-10-10 20:14 ` Fabrice Popineau
2017-10-11 10:02 ` Eli Zaretskii
2017-10-13 18:52 ` Eli Zaretskii
2017-10-13 22:00 ` Richard Copley
2017-10-14 6:39 ` Eli Zaretskii
2017-10-13 22:28 ` Paul Eggert
2017-10-14 6:47 ` Eli Zaretskii
2017-10-14 8:05 ` Paul Eggert
2017-10-14 8:25 ` Eli Zaretskii
2017-10-14 9:28 ` Paul Eggert
2017-10-14 9:30 ` Andreas Schwab
2017-10-14 10:33 ` Eli Zaretskii
2017-10-14 11:31 ` Andreas Schwab
2017-10-14 12:18 ` Eli Zaretskii
2017-10-14 12:39 ` Andreas Schwab
2017-10-14 14:00 ` Eli Zaretskii
2017-10-14 22:51 ` Paul Eggert
2017-10-15 15:14 ` Eli Zaretskii
2017-10-15 15:39 ` Andreas Schwab [this message]
2017-10-15 16:30 ` Eli Zaretskii
2017-10-15 16:41 ` Stefan Monnier
2017-10-15 17:19 ` Eli Zaretskii
2017-10-15 16:47 ` Andreas Schwab
2017-10-14 9:26 ` Andreas Schwab
2017-10-14 9:31 ` Paul Eggert
2017-10-14 19:06 ` Fabrice Popineau
2017-10-10 18:55 ` Fabrice Popineau
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lr0zah1.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=fabrice.popineau@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).