#DOCUMENTATION by exept
class: Integer
comment/format in: #anyBitOfMagnitudeFrom:to:
--- 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