[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make a new pseudovector type?
From: |
Stefan Monnier |
Subject: |
Re: How to make a new pseudovector type? |
Date: |
Mon, 18 Jul 2011 10:19:33 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>>> 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