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/KeyPatternPool.cs

    r1169 r1448  
    66using System.Collections;
    77using Cryptool.Plugins.PeerToPeer.Jobs;
     8using System.Numerics;
    89
    910namespace KeySearcher
     
    4041                        splittingQuotient[c] = k;
    4142                        BigInteger size = GetPartSize();
    42                         if ((size - partsize).abs() < (bestSize - partsize).abs())                       
     43                        if (BigInteger.Abs((size - partsize)) < BigInteger.Abs(bestSize - partsize))
    4344                            bestSize = size;                       
    4445                        else
     
    165166        public long Count()
    166167        {
    167             return (TotalAmount() + stack.Count - counter).LongValue();
     168            return (long)(TotalAmount() + stack.Count - counter);
    168169        }
    169170
Note: See TracChangeset for help on using the changeset viewer.