diff --git a/src/dsp/argb_mips_dsp_r2.c b/src/dsp/argb_mips_dsp_r2.c index a613d457..9e8b06c4 100644 --- a/src/dsp/argb_mips_dsp_r2.c +++ b/src/dsp/argb_mips_dsp_r2.c @@ -93,16 +93,19 @@ static void PackRGB(const uint8_t* r, const uint8_t* g, const uint8_t* b, ); } -#endif // WEBP_USE_MIPS_DSP_R2 - //------------------------------------------------------------------------------ // Entry point extern void VP8EncDspARGBInitMIPSdspR2(void); WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitMIPSdspR2(void) { -#if defined(WEBP_USE_MIPS_DSP_R2) VP8PackARGB = PackARGB; VP8PackRGB = PackRGB; -#endif // WEBP_USE_MIPS_DSP_R2 } + +#else // !WEBP_USE_MIPS_DSP_R2 + +extern void VP8EncDspARGBInitMIPSdspR2(void); +WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitMIPSdspR2(void) {} + +#endif // WEBP_USE_MIPS_DSP_R2 diff --git a/src/dsp/argb_sse2.c b/src/dsp/argb_sse2.c index a1e9e524..dc54e2c8 100644 --- a/src/dsp/argb_sse2.c +++ b/src/dsp/argb_sse2.c @@ -51,12 +51,18 @@ static void PackARGB(const uint8_t* a, const uint8_t* r, const uint8_t* g, } } -#endif // WEBP_USE_SSE2 +//------------------------------------------------------------------------------ +// Entry point extern void VP8EncDspARGBInitSSE2(void); WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitSSE2(void) { -#if defined(WEBP_USE_SSE2) VP8PackARGB = PackARGB; -#endif } + +#else // !WEBP_USE_SSE2 + +extern void VP8EncDspARGBInitSSE2(void); +WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitSSE2(void) {} + +#endif // WEBP_USE_SSE2