本文整理汇总了Python中tdasm.Tdasm.avx_supported方法的典型用法代码示例。如果您正苦于以下问题:Python Tdasm.avx_supported方法的具体用法?Python Tdasm.avx_supported怎么用?Python Tdasm.avx_supported使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tdasm.Tdasm
的用法示例。
在下文中一共展示了Tdasm.avx_supported方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Tdasm
# 需要导入模块: from tdasm import Tdasm [as 别名]
# 或者: from tdasm.Tdasm import avx_supported [as 别名]
from tdasm import Tdasm
import renmas.core
from renmas.core import AsmStructures
asm = Tdasm()
AVX = asm.avx_supported()
AVX = False
SSSE3 = asm.cpu["ssse3"]
#SSSE3 = False
SSE3 = asm.cpu["sse3"]
SSE41 = asm.cpu["sse41"]
#SSE41 = False
SSE2 = asm.cpu["sse2"]
def structs(*lst_structs):
code = ""
asm_structs = AsmStructures()
for s in lst_structs:
struct = asm_structs.get_struct(s)
if struct is None:
raise ValueError("Structure " + str(s) + " doesn't exist!")
code += struct
return code
assembler = None
示例2: Tdasm
# 需要导入模块: from tdasm import Tdasm [as 别名]
# 或者: from tdasm.Tdasm import avx_supported [as 别名]
from tdasm import Tdasm
__asm = Tdasm()
AVX = __asm.avx_supported()
AVX = False
SSSE3 = __asm.cpu["ssse3"]
#SSSE3 = False
SSE3 = __asm.cpu["sse3"]
SSE41 = __asm.cpu["sse41"]
#SSE41 = False
SSE2 = __asm.cpu["sse2"]