Re: My idea of fully-portable C code



On May 13, 11:18 pm, Tomás Ó hÉilidhe <t...@xxxxxxxxxxx> wrote:

No, it doesn't. The chunk size is determined by BITS_PER_CHUNK. The
type, uint8_fast_t, can indeed store values outside the "chunk value
range" but that doesn't mean you should try to store 467 in a 2-Bit
number. If you compile the program in debug mode, there will be an
assertion failure to let you know that 467 is outside the range.

This is now different from trying to store 300 in an unsigned char.
^
|
|
That "now" should be "no".
.



Relevant Pages

  • Re: Parsing multi-line text
    ... 01 NAME: Alice -> 37 ... You make the text 'Chunk' the record delimiter. ... Now grab everything up to next double quote (store in $2). ... then grab digits, ...
    (comp.lang.perl.misc)
  • Re: Web Based Files and Drivers Repository for IT Dept.
    ... MediaWiki. ... Store the files on a file share, as those are likely to be a ... bit large to chunk into the database. ...
    (Ubuntu)
  • Re: Anyone interested in . . .
    ... Ability to store without am ... HP header is a command. ... To read a file chunk by chunk: ... some type of PVARS and TYPE commands working on the SD would be ...
    (comp.sys.hp48)
  • Re: An Interesting Gotcha
    ... >> can just obtain another chunk of memory to store the new elements, ... >But when you insert an element into the beginning of a chunk through either ... So your pointers/references are safe. ...
    (comp.lang.cpp)
  • Reading chunk of text from a large file
    ... I would like to read a chunk of text from a very large ... and store it as a string. ... between lines line1 and line2, and store it in cell array c. ...
    (comp.soft-sys.matlab)