mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
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:
parent
1d93ddec19
commit
808094228c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user