Changes between Version 1 and Version 2 of TypesForSize


Ignore:
Timestamp:
Jun 6, 2013 11:26:46 AM (11 years ago)
Author:
Carlos Garcia Campos
Comment:

Fix formatting

Legend:

Unmodified
Added
Removed
Modified
  • TypesForSize

    v1 v2  
    22
    33* size_t is the type that can accommodate anything we could have in memory, so it’s always big enough.
    4 * As an optimization to our data structures, many should use unsigned instead of size_t, since on 64-bit systems this can make our objects much smaller, and there are many things that simply can’t go past 2^32.
    5 * When we are dealing with the size of a file on disk or something that can be dealt without mapping or loading the whole thing into memory all at once, we want to use a type like "unsigned long long" that can represent sizes larger than 2^32 even on 32-bit systems
     4* As an optimization to our data structures, many should use unsigned instead of size_t, since on 64-bit systems this can make our objects much smaller, and there are many things that simply can’t go past 2^32^.
     5* When we are dealing with the size of a file on disk or something that can be dealt without mapping or loading the whole thing into memory all at once, we want to use a type like "unsigned long long" that can represent sizes larger than 2^32^ even on 32-bit systems