all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: joakim@verona.se
Cc: emacs-devel@gnu.org
Subject: Re: How to make a new pseudovector type?
Date: Mon, 18 Jul 2011 10:19:33 -0400	[thread overview]
Message-ID: <jwvaacb3c9b.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m34o2jr8vs.fsf@verona.se> (joakim@verona.se's message of "Mon, 18 Jul 2011 15:55:19 +0200")

>>> In the xwidget branch I use   PVEC_OTHER = 0x400000 from enum pvec_type
>>> to represent an xwidget.
>> Don't: create a new PVEC_XWIDGET instead.
> Cool, but the bitmask is fully utilized. Can I expand the bitmask?

Of course.

> (I need 2 types.) if so, why is it so small to begin with?

It's made as large as needed.  Actually, it largely doesn't need to be
a bitmask.  Last time I looked it's only used at one or two places to
make it marginally quicker to check if something is one of some
particular subset of the possible pseudo-vectors.


        Stefan



      reply	other threads:[~2011-07-18 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 10:31 How to make a new pseudovector type? joakim
2011-07-18 13:46 ` Stefan Monnier
2011-07-18 13:55   ` joakim
2011-07-18 14:19     ` Stefan Monnier [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvaacb3c9b.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=joakim@verona.se \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.