Deutsch   English   Français   Italiano  
<vsmrfe$1ilno$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Thu, 3 Apr 2025 20:35:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vsmrfe$1ilno$2@dont-email.me>
References: <87y0wjaysg.fsf@gmail.com> <vsijts$13c9u$1@dont-email.me>
	<vsl9ep$3vdjj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 03 Apr 2025 22:35:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0d09d6b71566b890a7e93babcab31c5a";
	logging-data="1660664"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18LkVvus6l7gbOd9cAUDNZn"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:/3PBnNAgfrnidgJGImbNL95ZjaU=
Bytes: 1569

On Thu, 3 Apr 2025 01:20:48 -0500, BGB wrote:

> So, extended features:
>    _UBitInt(5)   cr, cg, cb;
>    _UBitInt(16)  clr;
>    clr = (_UBitInt(16)) { 0b0u1, cr, cg, cb };
> Composes an RGB555 value.
> 
>    cg = clr[9:5]; //extract bits
>    clr[9:5] = cg;  //assign bits
>    clr[15:10] = clr[9:5];  //copy bits from one place to another.
> 
> And:
>    (_UBitInt(16)) { 0b0u1, cr, cg, cb } = clr;
> 
> Decomposing it into components, any fixed-width constants being treated 
> as placeholders.

Next step: what if they’re variable-width bitfields, not fixed-width?