SmallInteger.st
changeset 19318 eee0a5c4dcea
parent 19317 18904be01e63
child 19321 1948c58602d0
equal deleted inserted replaced
19317:18904be01e63 19318:eee0a5c4dcea
    43 !
    43 !
    44 
    44 
    45 documentation
    45 documentation
    46 "
    46 "
    47     SmallIntegers are Integers in the range of at least +/- 2^30
    47     SmallIntegers are Integers in the range of at least +/- 2^30
    48     (i.e. 31 bits, which is not a guaranteed: on an alpha, 63 bits are used,
    48     i.e. 31 bits, but this is not a guaranteed:
    49      if the system was configured for 64bit mode).
    49         on an alpha or x86_64, 63 bits are used, if the system was configured for 64bit mode.
       
    50         under the Schteam-VM, 64 bits are used (i.e. a full long integer)
    50 
    51 
    51     These are no real objects - they have no instances (not even storage !!)
    52     These are no real objects - they have no instances (not even storage !!)
    52     and cannot be subclassed.
    53     and cannot be subclassed.
    53     The reason is to save both storage and runtime by not collecting
    54     The reason is to save both storage and runtime by not collecting
    54     SmallIntegers in the system. SmallInts are marked by having the TAG_INT
    55     SmallIntegers in the system. SmallInts are marked by having the TAG_INT
    59 
    60 
    60     If you really need this kind of thing, create a subclass of Integer,
    61     If you really need this kind of thing, create a subclass of Integer,
    61     with an instance variable holding the value.
    62     with an instance variable holding the value.
    62 
    63 
    63     [author:]
    64     [author:]
    64 	Claus Gittinger
    65         Claus Gittinger
    65 
    66 
    66     [see also:]
    67     [see also:]
    67 	Number
    68         Number
    68 	Float Fraction FixedPoint
    69         Float Fraction FixedPoint
    69 	LargeInteger
    70         LargeInteger
    70 "
    71 "
    71 ! !
    72 ! !
    72 
    73 
    73 !SmallInteger class methodsFor:'instance creation'!
    74 !SmallInteger class methodsFor:'instance creation'!
    74 
    75