ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:limits

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
new:limits [2018/02/17 22:07] korshunnew:limits [2018/02/17 22:08] korshun
Line 3: Line 3:
 ACSUtils defines constants that represent minimum and maximum values that can be stored in memory blocks (variables) of various sizes. ACSUtils defines constants that represent minimum and maximum values that can be stored in memory blocks (variables) of various sizes.
  
-===== Int  =====+===== int  =====
  
 Int is signed 32-bit integer. Unsigned ints don't exist in ACS, so ''UINT_MAX'' can't be expressed. Int is signed 32-bit integer. Unsigned ints don't exist in ACS, so ''UINT_MAX'' can't be expressed.
Line 14: Line 14:
 Shorts are 16-bit integers. Shorts are 16-bit integers.
  
-  * ''SHORT_MIN = -32768'' -- minimum value for signed short +  * ''SHORT_MIN = -32768'' -- minimum value of signed short 
-  * ''SHORT_MAX = 32676'' -- maximum value for signed short +  * ''SHORT_MAX = 32676'' -- maximum value of signed short 
-  * ''USHORT_MAX = 65535'' -- maximum value for unsigned short (minimum is 0)+  * ''USHORT_MAX = 65535'' -- maximum value of unsigned short (minimum is 0)
  
 ===== Byte ===== ===== Byte =====
Line 22: Line 22:
 Bytes are 8-bit integers. Bytes are 8-bit integers.
  
-  * ''BYTE_MIN = -128'' -- minimum value for signed byte +  * ''BYTE_MIN = -128'' -- minimum value of signed byte 
-  * ''BYTE_MAX = 127'' -- maximum value for signed byte +  * ''BYTE_MAX = 127'' -- maximum value of signed byte 
-  * ''UBYTE_MAX = 255'' -- maximum value for unsigned short (minimum is 0)+  * ''UBYTE_MAX = 255'' -- maximum value of unsigned short (minimum is 0)
  
 ===== fixed ===== ===== fixed =====
new/limits.txt · Last modified: 2018/02/17 22:09 by korshun