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
new:limits [2018/02/17 22:08] korshunnew:limits [2018/02/17 22:09] (current) 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  =====+===== 32-bit =====
  
-Int is signed 32-bit integer. Unsigned ints don't exist in ACS, so ''UINT_MAX'' can't be expressed.+ACS ''int'' is signed 32-bit integer. Unsigned ints don't exist in ACS, so ''UINT_MAX'' can't be expressed.
  
   * ''INT_MIN = -2147483648 (-0x80000000)'' -- minimum value   * ''INT_MIN = -2147483648 (-0x80000000)'' -- minimum value
   * ''INT_MAX =  2147483647  (0x7fffffff)'' -- maximum value   * ''INT_MAX =  2147483647  (0x7fffffff)'' -- maximum value
  
-===== Short =====+===== 16-bit =====
  
-Shorts are 16-bit integers.+16-bit integers are also known as shorts.
  
   * ''SHORT_MIN = -32768'' -- minimum value of signed short   * ''SHORT_MIN = -32768'' -- minimum value of signed short
Line 18: Line 18:
   * ''USHORT_MAX = 65535'' -- maximum value of unsigned short (minimum is 0)   * ''USHORT_MAX = 65535'' -- maximum value of unsigned short (minimum is 0)
  
-===== Byte =====+===== 8-bit =====
  
-Bytes are 8-bit integers.+8-bit integers are also known as bytes.
  
   * ''BYTE_MIN = -128'' -- minimum value of signed byte   * ''BYTE_MIN = -128'' -- minimum value of signed byte
new/limits.txt · Last modified: 2018/02/17 22:09 by korshun