dsp/dec*.c: rework WEBP_USE_<arch> ifdef

add a dummy init rather than repeating the '#ifdef WEBP_USE_...'
pattern.

Change-Id: I319bc7714f36b8a3d8b35f6474e5592a439aaf24
This commit is contained in:
James Zern
2015-03-19 20:39:10 -07:00
parent 48e4ffd15e
commit 66de69c1fe
5 changed files with 39 additions and 20 deletions

View File

@ -28,11 +28,19 @@ static void HE16(uint8_t* dst) { // horizontal
dst += BPS;
}
}
#endif // WEBP_USE_SSE41
//------------------------------------------------------------------------------
// Entry point
extern void VP8DspInitSSE41(void);
WEBP_TSAN_IGNORE_FUNCTION void VP8DspInitSSE41(void) {
#if defined(WEBP_USE_SSE41)
VP8PredLuma16[3] = HE16;
#endif // WEBP_USE_SSE41
}
#else // !WEBP_USE_SSE41
extern void VP8DspInitSSE41(void);
WEBP_TSAN_IGNORE_FUNCTION void VP8DspInitSSE41(void) {}
#endif // WEBP_USE_SSE41