Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if simd_flag == 0:
simd_name = 'No SIMD'
elif simd_flag == 4:
simd_name = 'SSSE3'
elif simd_flag == 8:
simd_name = 'SSE41'
elif simd_flag == 16:
simd_name = 'SSE42'
elif simd_flag == 32:
simd_name = 'AVX'
elif simd_flag == 64:
simd_name = 'AVX2'
else: # pragma: no branch
simd_name = 'Unknown' # pragma: no cover
return __version__ + ' (C extension active - ' + simd_name + ')'
return __version__ + ' (C extension inactive)'