Changeset 1f4a266


Ignore:
Timestamp:
Dec 15, 2015 8:34:28 PM (4 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
1e3e02d
Parents:
93fbdcd
Message:

Added more checks to Haswell identification..

Location:
core/java/src/freenet/support/CPUInformation
Files:
2 edited

Legend:

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

    r93fbdcd r1f4a266  
    6363     */
    6464    public boolean hasAVX2() {
    65         return this.hasABM() &&
    66                (CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5
     65        return (CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5
    6766    }
    6867   
  • core/java/src/freenet/support/CPUInformation/IntelInfoImpl.java

    r93fbdcd r1f4a266  
    378378                    case 0x46:
    379379                        CPUIDCPUInfo c = new CPUIDCPUInfo();
    380                         if (c.hasAVX2() && c.hasBMI1() && c.hasBMI2()) {
     380                        if (c.hasAVX2() && c.hasBMI1()  && c.hasBMI2() &&
     381                                c.hasFMA3() && c.hasMOVBE() && c.hasABM()) {
    381382                            isSandyCompatible = true;
    382383                            isIvyCompatible = true;
Note: See TracChangeset for help on using the changeset viewer.