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

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

Change-Id: Ife9c7cd363b3692b64a7ade1960cfce3a76c3ba2
This commit is contained in:
James Zern 2015-03-19 20:49:35 -07:00
parent 1d93ddec19
commit 808094228c
2 changed files with 14 additions and 8 deletions

View File

@ -177,16 +177,19 @@ static void ExportRow(WebPRescaler* const wrk, int x_out) {
}
}
#endif // WEBP_USE_MIPS32
//------------------------------------------------------------------------------
// Entry point
extern void WebPRescalerDspInitMIPS32(void);
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPS32(void) {
#if defined(WEBP_USE_MIPS32)
WebPRescalerImportRow = ImportRow;
WebPRescalerExportRow = ExportRow;
#endif // WEBP_USE_MIPS32
}
#else // !WEBP_USE_MIPS32
extern void WebPRescalerDspInitMIPS32(void);
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPS32(void) {}
#endif // WEBP_USE_MIPS32

View File

@ -195,16 +195,19 @@ static void ExportRow(WebPRescaler* const wrk, int x_out) {
}
}
#endif // WEBP_USE_MIPS_DSP_R2
//------------------------------------------------------------------------------
// Entry point
extern void WebPRescalerDspInitMIPSdspR2(void);
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPSdspR2(void) {
#if defined(WEBP_USE_MIPS_DSP_R2)
WebPRescalerImportRow = ImportRow;
WebPRescalerExportRow = ExportRow;
#endif // WEBP_USE_MIPS_DSP_R2
}
#else // !WEBP_USE_MIPS_DSP_R2
extern void WebPRescalerDspInitMIPSdspR2(void);
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPSdspR2(void) {}
#endif // WEBP_USE_MIPS_DSP_R2