jsimd_can_encode_mcu_AC_*(): Remove useless checks
These were necessary for the first iteration of the feature (see #46), which provided a different C front end for the SIMD version of the function. The final version of the feature uses a common C front end for both SIMD and non-SIMD implementations, so these checks are no longer necessary. Closes #231
This commit is contained in:
@@ -1210,15 +1210,10 @@ jsimd_can_encode_mcu_AC_first_prepare(void)
|
||||
return 0;
|
||||
if (SIZEOF_SIZE_T != 4)
|
||||
return 0;
|
||||
if (!(simd_support & JSIMD_SSE2))
|
||||
return 0;
|
||||
#if defined(HAVE_BUILTIN_CTZL)
|
||||
if (simd_support & JSIMD_SSE2)
|
||||
return 1;
|
||||
#elif defined(HAVE_BITSCANFORWARD)
|
||||
return 1;
|
||||
#else
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
GLOBAL(void)
|
||||
@@ -1241,15 +1236,10 @@ jsimd_can_encode_mcu_AC_refine_prepare(void)
|
||||
return 0;
|
||||
if (SIZEOF_SIZE_T != 4)
|
||||
return 0;
|
||||
if (!(simd_support & JSIMD_SSE2))
|
||||
return 0;
|
||||
#if defined(HAVE_BUILTIN_CTZL)
|
||||
if (simd_support & JSIMD_SSE2)
|
||||
return 1;
|
||||
#elif defined(HAVE_BITSCANFORWARD)
|
||||
return 1;
|
||||
#else
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
GLOBAL(int)
|
||||
|
||||
@@ -1033,15 +1033,10 @@ jsimd_can_encode_mcu_AC_first_prepare(void)
|
||||
return 0;
|
||||
if (SIZEOF_SIZE_T != 8)
|
||||
return 0;
|
||||
if (!(simd_support & JSIMD_SSE2))
|
||||
return 0;
|
||||
#if defined(HAVE_BUILTIN_CTZL)
|
||||
if (simd_support & JSIMD_SSE2)
|
||||
return 1;
|
||||
#elif defined(HAVE_BITSCANFORWARD64)
|
||||
return 1;
|
||||
#else
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
GLOBAL(void)
|
||||
@@ -1064,15 +1059,10 @@ jsimd_can_encode_mcu_AC_refine_prepare(void)
|
||||
return 0;
|
||||
if (SIZEOF_SIZE_T != 8)
|
||||
return 0;
|
||||
if (!(simd_support & JSIMD_SSE2))
|
||||
return 0;
|
||||
#if defined(HAVE_BUILTIN_CTZL)
|
||||
if (simd_support & JSIMD_SSE2)
|
||||
return 1;
|
||||
#elif defined(HAVE_BITSCANFORWARD64)
|
||||
return 1;
|
||||
#else
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
GLOBAL(int)
|
||||
|
||||
Reference in New Issue
Block a user