Ignore:
Timestamp:
May 20, 2010, 12:35:16 PM (12 years ago)
Author:
Sven Rech
Message:

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcher.cs

    r1244 r1448  
    1414using System.IO;
    1515using Cryptool.PluginBase.IO;
     16using System.Numerics;
    1617
    1718namespace KeySearcher
     
    674675
    675676            LinkedListNode<ValueKey> linkedListNode;
    676             ProgressChanged(Math.Pow(10, keycounter.log(10) - size.log(10)), 1.0);
     677            ProgressChanged(Math.Pow(10, BigInteger.Log(keycounter, 10) - BigInteger.Log(size, 10)), 1.0);
    677678
    678679            if (QuickWatchPresentation.IsVisible && doneKeys != 0 && !stop)
    679680            {
    680                 double time = (Math.Pow(10, (size - keycounter).log(10) - doneKeys.log(10)));
     681                double time = (Math.Pow(10, BigInteger.Log((size - keycounter), 10) - BigInteger.Log(doneKeys, 10)));
    681682                TimeSpan timeleft = new TimeSpan(-1);
    682683
Note: See TracChangeset for help on using the changeset viewer.