[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs-26 threads problem [win64]
From: |
Andreas Schwab |
Subject: |
Re: Emacs-26 threads problem [win64] |
Date: |
Sun, 15 Oct 2017 17:39:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
On Okt 15 2017, Eli Zaretskii <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Emacs-26 threads problem [win64], (continued)
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/14
- Re: Emacs-26 threads problem [win64], Paul Eggert, 2017/10/14
- Re: Emacs-26 threads problem [win64], Andreas Schwab, 2017/10/14
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/14
- Re: Emacs-26 threads problem [win64], Andreas Schwab, 2017/10/14
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/14
- Re: Emacs-26 threads problem [win64], Andreas Schwab, 2017/10/14
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/14
- Re: Emacs-26 threads problem [win64], Paul Eggert, 2017/10/14
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/15
- Re: Emacs-26 threads problem [win64],
Andreas Schwab <=
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/15
- Re: Emacs-26 threads problem [win64], Stefan Monnier, 2017/10/15
- Re: Emacs-26 threads problem [win64], Eli Zaretskii, 2017/10/15
- Re: Emacs-26 threads problem [win64], Andreas Schwab, 2017/10/15
- Re: Emacs-26 threads problem [win64], Andreas Schwab, 2017/10/14
- Re: Emacs-26 threads problem [win64], Paul Eggert, 2017/10/14
- Re: Emacs-26 threads problem [win64], Fabrice Popineau, 2017/10/14
- Re: Emacs-26 threads problem [win64], Fabrice Popineau, 2017/10/10