#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Sun, 23 Jun 2019 21:56:14 +0200
changeset 24345 ed6857d820f1
parent 24344 8a9942f57037
child 24346 6e8e1a508372
#DOCUMENTATION by cg class: Integer comment/format in: #bitAt:put:
Integer.st
--- a/Integer.st	Sun Jun 23 21:55:30 2019 +0200
+++ b/Integer.st	Sun Jun 23 21:56:14 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
               All Rights Reserved
@@ -2563,6 +2565,11 @@
     ].
     ^ self setBit:anIntegerIndex
 
+    "
+     2r1100 bitAt:1 put:1
+     2r1101 bitAt:1 put:0
+    "
+
     "Created: / 23-06-2019 / 21:55:15 / Claus Gittinger"
 !
 
@@ -4141,7 +4148,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