From: ludo@gnu.org (Ludovic Courtès)
To: "Andy Wingo" <wingo@pobox.com>
Cc: guile-devel@gnu.org
Subject: SCM_STATIC_ALIGNED_ARRAY
Date: Mon, 01 Mar 2010 17:33:27 +0100 [thread overview]
Message-ID: <87635ggfxk.fsf@gnu.org> (raw)
In-Reply-To: <E1NjgMt-0000xD-7j@vcs-noshell.in.savannah.gnu.org> (Andy Wingo's message of "Mon, 22 Feb 2010 22:03:07 +0000")
Hello Andy!
"Andy Wingo" <wingo@pobox.com> writes:
> commit cee1d22c3c10b1892c82a5758ef69cd6fc9aba31
> Author: Andy Wingo <wingo@pobox.com>
> Date: Mon Feb 22 23:00:19 2010 +0100
>
> actually capture partial continuations
[...]
> +#ifdef SCM_ALIGNED
> +#define SCM_DECLARE_STATIC_ALIGNED_ARRAY(type, sym)\
> +static const type sym[]
> +#define SCM_STATIC_ALIGNED_ARRAY(alignment, type, sym)\
> +static SCM_ALIGNED (alignment) const type sym[]
> +#else
> +#define SCM_DECLARE_STATIC_ALIGNED_ARRAY(type, sym)\
> +static type *sym
> +#define SCM_STATIC_ALIGNED_ARRAY(alignment, type, sym) \
> +SCM_SNARF_INIT(sym = scm_malloc (sizeof(sym##__unaligned) + alignment - 1); \
‘scm_gc_malloc_pointerless ()’ could be used here. It always returns
8-byte aligned areas [0], which should allow some of the alignment
twiddling to be removed. What do you think?
Also, the indentation, spacing, etc., are not GCS-conforming.
Thanks,
Ludo’.
[0] http://www.hpl.hp.com/hosted/linux/mail-archives/gc/2006-May/001280.html
next parent reply other threads:[~2010-03-01 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1NjgMt-0000xD-7j@vcs-noshell.in.savannah.gnu.org>
2010-03-01 16:33 ` Ludovic Courtès [this message]
2010-07-17 10:23 ` SCM_STATIC_ALIGNED_ARRAY Andy Wingo
2010-07-17 12:54 ` SCM_STATIC_ALIGNED_ARRAY Ludovic Courtès
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87635ggfxk.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@gnu.org \
--cc=wingo@pobox.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.
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).