[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: immediate strings #2
From: |
Paul Eggert |
Subject: |
Re: immediate strings #2 |
Date: |
Wed, 30 Nov 2011 01:35:05 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
On 11/29/11 21:37, Dmitry Antipov wrote:
> It looks like I miss the point. For an immediate strings, we need
> two extra bits - 1 for GC, 1 for string subtype, so the question is
> simple: where to get them if both size and size_byte are ptrdiff_t?
You can get 1 bit from 'size' since it's always nonnegative.
You can get the other bit from 'size_byte' if you change it
so that it's always nonnegative. This can be done by using
0 rather than -1 as its special value indicating that it
is unibyte and the actual byte size is given in 'size'.
- Re: immediate strings #2, (continued)
- Re: immediate strings #2, Ken Raeburn, 2011/11/28
- Re: immediate strings #2, Andreas Schwab, 2011/11/29
- Re: immediate strings #2, Ken Raeburn, 2011/11/29
- Re: immediate strings #2, Andreas Schwab, 2011/11/29
- Re: immediate strings #2, Ken Raeburn, 2011/11/30
Re: immediate strings #2, Paul Eggert, 2011/11/28
- Re: immediate strings #2, Stefan Monnier, 2011/11/28
- Re: immediate strings #2, Dmitry Antipov, 2011/11/28
- Re: immediate strings #2, Paul Eggert, 2011/11/29
- Re: immediate strings #2, Dmitry Antipov, 2011/11/30
- Re: immediate strings #2,
Paul Eggert <=
- Re: immediate strings #2, Ken Raeburn, 2011/11/30
- Re: immediate strings #2, Paul Eggert, 2011/11/30
Re: immediate strings #2, Dmitry Antipov, 2011/11/28
Re: immediate strings #2, Dmitry Antipov, 2011/11/29