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:
mayeut
2018-04-10 00:02:57 +02:00
committed by DRC
parent b628d6934f
commit 269e84c971
2 changed files with 12 additions and 32 deletions

View File

@@ -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)
return 1;
#elif defined(HAVE_BITSCANFORWARD)
return 1;
#else
if (simd_support & JSIMD_SSE2)
return 1;
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)
return 1;
#elif defined(HAVE_BITSCANFORWARD)
return 1;
#else
if (simd_support & JSIMD_SSE2)
return 1;
return 0;
#endif
}
GLOBAL(int)

View File

@@ -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)
return 1;
#elif defined(HAVE_BITSCANFORWARD64)
return 1;
#else
if (simd_support & JSIMD_SSE2)
return 1;
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)
return 1;
#elif defined(HAVE_BITSCANFORWARD64)
return 1;
#else
if (simd_support & JSIMD_SSE2)
return 1;
return 0;
#endif
}
GLOBAL(int)