Exemplo n.º 1
0
 def get_flags_arch(self):
     opt = []
     if cpu.is_PentiumPro() or cpu.is_PentiumII():
         opt.extend(['/G6','/Qaxi'])
     elif cpu.is_PentiumIII():
         opt.extend(['/G6','/QaxK'])
     elif cpu.is_Pentium():
         opt.append('/G5')
     elif cpu.is_PentiumIV():
         opt.extend(['/G7','/QaxW'])
     if cpu.has_mmx():
         opt.append('/QaxM')
     return opt
Exemplo n.º 2
0
 def get_flags_arch(self):
     opt = []
     if cpu.is_PentiumPro() or cpu.is_PentiumII():
         opt.extend(['/G6', '/Qaxi'])
     elif cpu.is_PentiumIII():
         opt.extend(['/G6', '/QaxK'])
     elif cpu.is_Pentium():
         opt.append('/G5')
     elif cpu.is_PentiumIV():
         opt.extend(['/G7', '/QaxW'])
     if cpu.has_mmx():
         opt.append('/QaxM')
     return opt
Exemplo n.º 3
0
 def get_flags_arch(self):
     opt = []
     if cpu.is_PentiumPro() or cpu.is_PentiumII():
         opt.extend(["/G6", "/Qaxi"])
     elif cpu.is_PentiumIII():
         opt.extend(["/G6", "/QaxK"])
     elif cpu.is_Pentium():
         opt.append("/G5")
     elif cpu.is_PentiumIV():
         opt.extend(["/G7", "/QaxW"])
     if cpu.has_mmx():
         opt.append("/QaxM")
     return opt
Exemplo n.º 4
0
    def get_flags_arch(self):
        v = self.get_version()
        opt = []
        if cpu.has_fdiv_bug():
            opt.append('-fdiv_check')
        if cpu.has_f00f_bug():
            opt.append('-0f_check')
        if cpu.is_PentiumPro() or cpu.is_PentiumII() or cpu.is_PentiumIII():
            opt.extend(['-tpp6'])
        elif cpu.is_PentiumM():
            opt.extend(['-tpp7', '-xB'])
        elif cpu.is_Pentium():
            opt.append('-tpp5')
        elif cpu.is_PentiumIV() or cpu.is_Xeon():
            opt.extend(['-tpp7', '-xW'])
        if v and v <= '7.1':
            if cpu.has_mmx() and (cpu.is_PentiumII() or cpu.is_PentiumIII()):
                opt.append('-xM')
        elif v and v >= '8.0':
            if cpu.is_PentiumIII():
                opt.append('-xK')
                if cpu.has_sse3():
                    opt.extend(['-xP'])
            elif cpu.is_PentiumIV():
                opt.append('-xW')
                if cpu.has_sse2():
                    opt.append('-xN')
            elif cpu.is_PentiumM():
                opt.extend(['-xB'])
            if (cpu.is_Xeon() or cpu.is_Core2()
                    or cpu.is_Core2Extreme()) and cpu.getNCPUs() == 2:
                opt.extend(['-xT'])
            if cpu.has_sse3() and (cpu.is_PentiumIV() or cpu.is_CoreDuo()
                                   or cpu.is_CoreSolo()):
                opt.extend(['-xP'])

        if cpu.has_sse2():
            opt.append('-arch SSE2')
        elif cpu.has_sse():
            opt.append('-arch SSE')
        return opt
Exemplo n.º 5
0
 def get_flags_arch(self):
     opt = []
     if cpu.has_fdiv_bug():
         opt.append('-fdiv_check')
     if cpu.has_f00f_bug():
         opt.append('-0f_check')
     if cpu.is_PentiumPro() or cpu.is_PentiumII() or cpu.is_PentiumIII():
         opt.extend(['-tpp6'])
     elif cpu.is_PentiumM():
         opt.extend(['-tpp7','-xB'])
     elif cpu.is_Pentium():
         opt.append('-tpp5')
     elif cpu.is_PentiumIV() or cpu.is_Xeon():
         opt.extend(['-tpp7','-xW'])
     if cpu.has_mmx() and not cpu.is_Xeon():
         opt.append('-xM')
     if cpu.has_sse2():
         opt.append('-arch SSE2')
     elif cpu.has_sse():
         opt.append('-arch SSE')
     return opt
Exemplo n.º 6
0
 def get_flags_arch(self):
     opt = []
     if cpu.has_fdiv_bug():
         opt.append('-fdiv_check')
     if cpu.has_f00f_bug():
         opt.append('-0f_check')
     if cpu.is_PentiumPro() or cpu.is_PentiumII() or cpu.is_PentiumIII():
         opt.extend(['-tpp6'])
     elif cpu.is_PentiumM():
         opt.extend(['-tpp7', '-xB'])
     elif cpu.is_Pentium():
         opt.append('-tpp5')
     elif cpu.is_PentiumIV() or cpu.is_Xeon():
         opt.extend(['-tpp7', '-xW'])
     if cpu.has_mmx() and not cpu.is_Xeon():
         opt.append('-xM')
     if cpu.has_sse2():
         opt.append('-arch SSE2')
     elif cpu.has_sse():
         opt.append('-arch SSE')
     return opt
Exemplo n.º 7
0
    def get_flags_arch(self):
        v = self.get_version()
        opt = []
        if cpu.has_fdiv_bug():
            opt.append('-fdiv_check')
        if cpu.has_f00f_bug():
            opt.append('-0f_check')
        if cpu.is_PentiumPro() or cpu.is_PentiumII() or cpu.is_PentiumIII():
            opt.extend(['-tpp6'])
        elif cpu.is_PentiumM():
            opt.extend(['-tpp7','-xB'])
        elif cpu.is_Pentium():
            opt.append('-tpp5')
        elif cpu.is_PentiumIV() or cpu.is_Xeon():
            opt.extend(['-tpp7','-xW'])
        if v and v <= '7.1':
            if cpu.has_mmx() and (cpu.is_PentiumII() or cpu.is_PentiumIII()):
                opt.append('-xM')
        elif v and v >= '8.0':
            if cpu.is_PentiumIII():
                opt.append('-xK')
                if cpu.has_sse3():
                    opt.extend(['-xP'])
            elif cpu.is_PentiumIV():
                opt.append('-xW')
                if cpu.has_sse2():
                    opt.append('-xN')
            elif cpu.is_PentiumM():
                opt.extend(['-xB'])
            if (cpu.is_Xeon() or cpu.is_Core2() or cpu.is_Core2Extreme()) and cpu.getNCPUs()==2:
                opt.extend(['-xT'])
            if cpu.has_sse3() and (cpu.is_PentiumIV() or cpu.is_CoreDuo() or cpu.is_CoreSolo()):
                opt.extend(['-xP'])

        if cpu.has_sse2():
            opt.append('-arch SSE2')
        elif cpu.has_sse():
            opt.append('-arch SSE')
        return opt
Exemplo n.º 8
0
    def get_flags_arch(self):
        v = self.get_version()
        opt = []
        if cpu.has_fdiv_bug():
            opt.append("-fdiv_check")
        if cpu.has_f00f_bug():
            opt.append("-0f_check")
        if cpu.is_PentiumPro() or cpu.is_PentiumII() or cpu.is_PentiumIII():
            opt.extend(["-tpp6"])
        elif cpu.is_PentiumM():
            opt.extend(["-tpp7", "-xB"])
        elif cpu.is_Pentium():
            opt.append("-tpp5")
        elif cpu.is_PentiumIV() or cpu.is_Xeon():
            opt.extend(["-tpp7", "-xW"])
        if v and v <= "7.1":
            if cpu.has_mmx() and (cpu.is_PentiumII() or cpu.is_PentiumIII()):
                opt.append("-xM")
        elif v and v >= "8.0":
            if cpu.is_PentiumIII():
                opt.append("-xK")
                if cpu.has_sse3():
                    opt.extend(["-xP"])
            elif cpu.is_PentiumIV():
                opt.append("-xW")
                if cpu.has_sse2():
                    opt.append("-xN")
            elif cpu.is_PentiumM():
                opt.extend(["-xB"])
            if (cpu.is_Xeon() or cpu.is_Core2() or cpu.is_Core2Extreme()) and cpu.getNCPUs() == 2:
                opt.extend(["-xT"])
            if cpu.has_sse3() and (cpu.is_PentiumIV() or cpu.is_CoreDuo() or cpu.is_CoreSolo()):
                opt.extend(["-xP"])

        if cpu.has_sse2():
            opt.append("-arch SSE2")
        elif cpu.has_sse():
            opt.append("-arch SSE")
        return opt