mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-11 19:36:47 +02: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
|
// Entry point
|
||||||
|
|
||||||
extern void WebPRescalerDspInitMIPS32(void);
|
extern void WebPRescalerDspInitMIPS32(void);
|
||||||
|
|
||||||
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPS32(void) {
|
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPS32(void) {
|
||||||
#if defined(WEBP_USE_MIPS32)
|
|
||||||
WebPRescalerImportRow = ImportRow;
|
WebPRescalerImportRow = ImportRow;
|
||||||
WebPRescalerExportRow = ExportRow;
|
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
|
// Entry point
|
||||||
|
|
||||||
extern void WebPRescalerDspInitMIPSdspR2(void);
|
extern void WebPRescalerDspInitMIPSdspR2(void);
|
||||||
|
|
||||||
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPSdspR2(void) {
|
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitMIPSdspR2(void) {
|
||||||
#if defined(WEBP_USE_MIPS_DSP_R2)
|
|
||||||
WebPRescalerImportRow = ImportRow;
|
WebPRescalerImportRow = ImportRow;
|
||||||
WebPRescalerExportRow = ExportRow;
|
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…
x
Reference in New Issue
Block a user