示例#1
0
def autodetect():
    model = autodetect_main_model()
    if model in ('i386', 'x86'):
        from pypy.jit.backend.x86.detect_sse2 import detect_sse2
        if not detect_sse2():
            model = 'x86-without-sse2'
    return model
示例#2
0
def autodetect():
    model = autodetect_main_model()
    if model in ("i386", "x86"):
        from pypy.jit.backend.x86.detect_sse2 import detect_sse2

        if not detect_sse2():
            model = "x86-without-sse2"
    return model
示例#3
0
文件: detect_cpu.py 项目: njues/Sypy
def autodetect():
    model = autodetect_main_model()
    if sys.maxint == 2**63 - 1:
        model += '_64'
    else:
        assert sys.maxint == 2**31 - 1
        if model == 'x86':
            from pypy.jit.backend.x86.detect_sse2 import detect_sse2
            if not detect_sse2():
                model = 'x86-without-sse2'
    return model
示例#4
0
def autodetect():
    model = autodetect_main_model()
    if sys.maxint == 2**63-1:
        model += '_64'
    else:
        assert sys.maxint == 2**31-1
        if model == 'x86':
            from pypy.jit.backend.x86.detect_sse2 import detect_sse2
            if not detect_sse2():
                model = 'x86-without-sse2'
    return model