LargeInteger.st
branchjv
changeset 18079 7b5afc0ad3d5
parent 18066 89d51443ba6f
parent 15577 cc63cd495a01
child 18084 ab5b38bd8f81
equal deleted inserted replaced
18078:7ef3221b036d 18079:7b5afc0ad3d5
  1492      Least significant byte is first!!"
  1492      Least significant byte is first!!"
  1493 
  1493 
  1494     ^ digitByteArray
  1494     ^ digitByteArray
  1495 
  1495 
  1496     "Modified: / 5.5.1999 / 14:57:03 / stefan"
  1496     "Modified: / 5.5.1999 / 14:57:03 / stefan"
       
  1497 !
       
  1498 
       
  1499 digitBytesMSB
       
  1500     "return a byteArray filled with the receivers bits
       
  1501      (8 bits of the absolute value per element),
       
  1502      most significant byte first"
       
  1503 
       
  1504      ^ digitByteArray copyReverse.
  1497 !
  1505 !
  1498 
  1506 
  1499 digitBytesMSB:msbFlag
  1507 digitBytesMSB:msbFlag
  1500     "return a byteArray filled with the receivers bits
  1508     "return a byteArray filled with the receivers bits
  1501      (8 bits of the absolute value per element),
  1509      (8 bits of the absolute value per element),
  2521     "
  2529     "
  2522 
  2530 
  2523     "Modified: / 9.1.1998 / 13:27:37 / cg"
  2531     "Modified: / 9.1.1998 / 13:27:37 / cg"
  2524 ! !
  2532 ! !
  2525 
  2533 
  2526 !LargeInteger methodsFor:'modulu arithmetic'!
  2534 !LargeInteger methodsFor:'modulo arithmetic'!
  2527 
  2535 
  2528 plus32:aNumber
  2536 plus32:aNumber
  2529     "return the sum of the receiver and the argument, as SmallInteger.
  2537     "return the sum of the receiver and the argument, as SmallInteger.
  2530      The argument must be another SmallInteger.
  2538      The argument must be another SmallInteger.
  2531      If the result overflows the 32 bit range, the value modulo 16rFFFFFFFF is returned.
  2539      If the result overflows the 32 bit range, the value modulo 16rFFFFFFFF is returned.
  5220 ! !
  5228 ! !
  5221 
  5229 
  5222 !LargeInteger class methodsFor:'documentation'!
  5230 !LargeInteger class methodsFor:'documentation'!
  5223 
  5231 
  5224 version
  5232 version
  5225     ^ '$Header: /cvs/stx/stx/libbasic/LargeInteger.st,v 1.210 2013-05-27 08:13:50 cg Exp $'
  5233     ^ '$Header: /cvs/stx/stx/libbasic/LargeInteger.st,v 1.212 2013-07-30 10:56:22 stefan Exp $'
  5226 !
  5234 !
  5227 
  5235 
  5228 version_CVS
  5236 version_CVS
  5229     ^ '$Header: /cvs/stx/stx/libbasic/LargeInteger.st,v 1.210 2013-05-27 08:13:50 cg Exp $'
  5237     ^ '$Header: /cvs/stx/stx/libbasic/LargeInteger.st,v 1.212 2013-07-30 10:56:22 stefan Exp $'
  5230 ! !
  5238 ! !
  5231 
  5239