Changeset 3e4d774


Ignore:
Timestamp:
Dec 27, 2015 1:22:34 PM (4 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
305f45fb
Parents:
71d4b5f
Message:

Added support an missing binary for AMD K10 arch.

Location:
core/java/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/freenet/support/CPUInformation/AMDCPUInfo.java

    r71d4b5f r3e4d774  
    4040     */
    4141    public boolean IsAthlon64Compatible();
     42    /**
     43     * @return true if the CPU present in the machine is at least an 'k10' CPU
     44     */
     45    public boolean IsK10Compatible();
    4246    /**
    4347     * @return true if the CPU present in the machine is at least an 'bobcat' CPU
  • core/java/src/freenet/support/CPUInformation/AMDInfoImpl.java

    r71d4b5f r3e4d774  
    1616    private static boolean isAthlonCompatible;
    1717    private static boolean isAthlon64Compatible;
     18    private static boolean isK10Compatible;
    1819    private static boolean isBobcatCompatible;
    1920    private static boolean isJaguarCompatible;
     
    3536
    3637    public boolean IsAthlon64Compatible(){ return isAthlon64Compatible; }
     38
     39    public boolean IsK10Compatible(){ return isK10Compatible; }
    3740
    3841    public boolean IsBobcatCompatible(){ return isBobcatCompatible; }
     
    325328            isAthlonCompatible = true;
    326329            isAthlon64Compatible = true;
     330            isK10Compatible = true;
    327331            switch (model) {
    328332                case 2:
  • core/java/src/net/i2p/util/NativeBigInteger.java

    r71d4b5f r3e4d774  
    165165    private final static String JBIGI_OPTIMIZATION_COREI_HWL   = "coreihwl";
    166166    private final static String JBIGI_OPTIMIZATION_COREI_BWL   = "coreibwl";
     167    private final static String JBIGI_OPTIMIZATION_K10         = "k10";
    167168    private final static String JBIGI_OPTIMIZATION_BULLDOZER   = "bulldozer";
    168169    private final static String JBIGI_OPTIMIZATION_PILEDRIVER  = "piledriver";
     
    214215    private final static String[] JBIGI_COMPAT_LIST_VIA           = {JBIGI_OPTIMIZATION_NANO, JBIGI_OPTIMIZATION_VIAC32, JBIGI_OPTIMIZATION_VIAC3,
    215216                                                                     JBIGI_OPTIMIZATION_PENTIUM, JBIGI_OPTIMIZATION_X86};
    216     private final static String[] JBIGI_COMPAT_LIST_AMD_ATHLON    = {JBIGI_OPTIMIZATION_ATHLON64, JBIGI_OPTIMIZATION_ATHLON, JBIGI_OPTIMIZATION_K6_3,
    217                                                                      JBIGI_OPTIMIZATION_K6_2, JBIGI_OPTIMIZATION_K6, JBIGI_OPTIMIZATION_X86};
     217    private final static String[] JBIGI_COMPAT_LIST_AMD_ATHLON    = {JBIGI_OPTIMIZATION_K10, JBIGI_OPTIMIZATION_ATHLON64, JBIGI_OPTIMIZATION_ATHLON,
     218                                                                     JBIGI_OPTIMIZATION_K6_3, JBIGI_OPTIMIZATION_K6_2, JBIGI_OPTIMIZATION_K6, JBIGI_OPTIMIZATION_X86};
    218219    private final static String[] JBIGI_COMPAT_LIST_AMD_GEODE     = {JBIGI_OPTIMIZATION_GEODE, JBIGI_OPTIMIZATION_K6_3, JBIGI_OPTIMIZATION_K6_2, JBIGI_OPTIMIZATION_K6,
    219220                                                                     JBIGI_OPTIMIZATION_X86};
     
    255256        put(JBIGI_OPTIMIZATION_ATHLON,   JBIGI_COMPAT_LIST_AMD_ATHLON);
    256257        put(JBIGI_OPTIMIZATION_ATHLON64, JBIGI_COMPAT_LIST_AMD_ATHLON);
     258        put(JBIGI_OPTIMIZATION_K10, JBIGI_COMPAT_LIST_AMD_ATHLON);
    257259
    258260        put(JBIGI_OPTIMIZATION_GEODE, JBIGI_COMPAT_LIST_AMD_GEODE);
     
    360362                    if (amdcpu.IsBobcatCompatible())
    361363                        return JBIGI_OPTIMIZATION_BOBCAT;
     364                    if (amdcpu.IsK10Compatible())
     365                        return JBIGI_OPTIMIZATION_K10;
    362366                    if (amdcpu.IsAthlon64Compatible())
    363367                        return JBIGI_OPTIMIZATION_ATHLON64;
Note: See TracChangeset for help on using the changeset viewer.