Changeset 150cb303


Ignore:
Timestamp:
May 25, 2011 10:13:18 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b6fab82
Parents:
724d8de
Message:

minor NBI tweaks and comments

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/NativeBigInteger.java

    r724d8de r150cb303  
    103103                                    I2PAppContext.getGlobalContext().isRouterContext();
    104104   
     105    /**
     106     *  The following libraries are be available in jbigi.jar in all I2P versions
     107     *  originally installed as release 0.6.1.10 or later (released 2006-01-16),
     108     *  for linux, freebsd, and windows, EXCEPT:
     109     *   - k63 was removed for linux and freebsd in 0.8.7 (identical to k62)
     110     *   - athlon64 not available for freebsd
     111     *   - viac3 not available for windows
     112     */
    105113    private final static String JBIGI_OPTIMIZATION_K6         = "k6";
    106114    private final static String JBIGI_OPTIMIZATION_K6_2       = "k62";
     
    166174                // log?
    167175            }
     176            if (_isFreebsd)
     177                // athlon64 not available for freebsd
     178                return JBIGI_OPTIMIZATION_ATHLON;
    168179            return JBIGI_OPTIMIZATION_ATHLON64;
    169180        }
     
    457468        return loadGeneric(getMiddleName(optimized));
    458469    }
     470
    459471    private static final boolean loadGeneric(String name) {
    460472        try {
     
    492504        return loadFromResource(resourceName);
    493505    }
     506
    494507    private static final boolean loadFromResource(String resourceName) {
    495508        if (resourceName == null) return false;
     
    524537                ule.printStackTrace();
    525538            }
     539            if (outFile != null)
     540                outFile.delete();
    526541            return false;
    527542        } catch (IOException ioe) {
     
    530545                ioe.printStackTrace();
    531546            }
     547            if (outFile != null)
     548                outFile.delete();
    532549            return false;
    533550        } finally {
     
    568585                // viac32 and pentium3 identical
    569586                sAppend = "-" + JBIGI_OPTIMIZATION_PENTIUM3;
     587            //else if (sCPUType.equals(JBIGI_OPTIMIZATION_VIAC3) && _isWin)
     588                // FIXME no viac3 available for windows, what to use instead?
    570589            else
    571590                sAppend = "-" + sCPUType;       
  • history.txt

    r724d8de r150cb303  
    22    * CPUID: Load 64-bit libcpuid if available
    33    * HTTP Proxy: Address helper refactoring, address book add form
     4    * JBigI:
     5      - Start updating NativeBigInteger
     6      - Remove k63 libs that are dup of k62; handle in NBI
    47    * Naming: B32 fixes
    58    * NetDB: Increase floodfills again
  • router/java/src/net/i2p/router/RouterVersion.java

    r724d8de r150cb303  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 7;
     21    public final static long BUILD = 8;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.