mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user