sharyuv_{neon,sse2}.c: merge WEBP_USE_* sections

Change-Id: I686e6740717902d632fb01f9151e47fd3cb2cf79
This commit is contained in:
James Zern
2022-08-11 17:48:11 -07:00
parent ef70ee06fa
commit cad0d5adb6
2 changed files with 6 additions and 10 deletions

View File

@ -16,11 +16,6 @@
#if defined(WEBP_USE_SSE2)
#include <stdlib.h>
#include <emmintrin.h>
#endif
extern void InitSharpYuvSSE2(void);
#if defined(WEBP_USE_SSE2)
static uint16_t clip_SSE2(int v, int max) {
return (v < 0) ? 0 : (v > max) ? max : (uint16_t)v;
@ -199,6 +194,8 @@ WEBP_TSAN_IGNORE_FUNCTION void InitSharpYuvSSE2(void) {
}
#else // !WEBP_USE_SSE2
extern void InitSharpYuvSSE2(void);
void InitSharpYuvSSE2(void) {}
#endif // WEBP_USE_SSE2