Clean up grammar.

This commit is contained in:
Alcaro 2014-02-21 13:52:02 +01:00
parent c35634d704
commit c8925dd487
1 changed files with 3 additions and 5 deletions

View File

@ -22,7 +22,7 @@
//#define NO_UNALIGNED_MEM //#define NO_UNALIGNED_MEM
//Uncomment the above if alignment is enforced. //Uncomment the above if alignment is enforced.
//format per frame: //Format per frame:
//size nextstart; //size nextstart;
//repeat { //repeat {
// uint16 numchanged; // everything is counted in units of uint16 // uint16 numchanged; // everything is counted in units of uint16
@ -38,16 +38,14 @@
//} //}
//size thisstart; //size thisstart;
// //
//the start offsets point to 'nextstart' of any given compressed frame //The start offsets point to 'nextstart' of any given compressed frame.
//each uint16 is stored native endian; anything that claims any other endianness refers to the endianness between each frame //Each uint16 is stored native endian; anything that claims any other endianness refers to the endianness of this specific item.
//the uint32 is stored little endian //the uint32 is stored little endian
//each size value is stored native endian if alignment is not enforced; if it is, they're little endian //each size value is stored native endian if alignment is not enforced; if it is, they're little endian
//the start of the buffer contains a size pointing to the end of the buffer; the end points to its start //the start of the buffer contains a size pointing to the end of the buffer; the end points to its start
//wrapping is handled by returning to the start of the buffer if the compressed data could potentially hit the edge //wrapping is handled by returning to the start of the buffer if the compressed data could potentially hit the edge
//if the compressed data could potentially overwrite the tail pointer, the tail retreats until it can no longer collide //if the compressed data could potentially overwrite the tail pointer, the tail retreats until it can no longer collide
//so on average, ~2*maxcompsize is unused at any given moment //so on average, ~2*maxcompsize is unused at any given moment
//
//if unaligned memory access is illegal, define NO_UNALIGNED_MEM
#if SIZE_MAX == 0xFFFFFFFF #if SIZE_MAX == 0xFFFFFFFF
extern char double_check_sizeof_size_t[(sizeof(size_t)==4)?1:-1]; extern char double_check_sizeof_size_t[(sizeof(size_t)==4)?1:-1];