Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,233 of 243,242    |
|    Philipp Klaus Krause to All    |
|    Re: _BitInt(N)    |
|    29 Nov 25 22:17:08    |
      From: pkk@spth.de              Am 24.11.25 um 13:31 schrieb bart:       > On 24/11/2025 11:17, David Brown wrote:       >> On 24/11/2025 01:30, bart wrote:       >       >>> Saving memory was mentioned. To achieve that means having bitfields       >>> that may not start at bit 0 of a byte, and may cross byte- or word-       >>> boundaries.       >>>       >>       >> No, that is incorrect.       >>       >> The proposal mentions saving /space/ as relevant in FPGAs - not       >> saving / memory/.       >       > But I was responding to a suggestion here that one use of _BitInts -       > presumably for ordinary hardware - was to save memory.       >       > That's not going to happen if they are simply rounded up to the next       > power-of-two type.              SDCC has no padding bytes - a _BitInt(N) uses (N+7)/8 bytes. And for       SDCC, _BitInt is currently the only way to get adressable integers that       are not a "power-of-two type".              Philipp              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca