#DOCUMENTATION by exept
authorClaus Gittinger <cg@exept.de>
Sun, 25 Aug 2019 15:37:53 +0200
changeset 24607 1351d9ac78f9
parent 24606 56e3caac754b
child 24608 243fe7a2a7fb
#DOCUMENTATION by exept class: Integer comment/format in: #anyBitOfMagnitudeFrom:to:
Integer.st
--- a/Integer.st	Sun Aug 25 12:12:10 2019 +0200
+++ b/Integer.st	Sun Aug 25 15:37:53 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
               All Rights Reserved
@@ -1355,7 +1357,7 @@
     firstDigitIx = lastDigitIx ifTrue: [
         | digit mask | 
         mask := (255 bitShift: rightShift negated)
-                                bitAnd: (255 bitShift: leftShift negated).
+                bitAnd: (255 bitShift: leftShift negated).
         digit := magnitude digitAt: firstDigitIx.
         ^ (digit bitAnd: mask) ~= 0
     ].
@@ -4147,7 +4149,7 @@
     ^ fibUsingDict value:self
 
     "the running time is mostly dictated by the LargeInteger multiplication performance...
-     (therefore, we get O(n²) execution times, even for a linear number of multiplications)
+     (therefore, we get O(n²) execution times, even for a linear number of multiplications)
 
      Time millisecondsToRun:[50000 fib_iterative]  312    (DUO 1.7Ghz CPU)
      Time millisecondsToRun:[50000 fib_helper]     109