1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/celp_math: Mark ff_celp_math_init() as av_cold

Also do the same for ff_celp_math_init_mips().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-04-03 13:45:54 +02:00
parent 77b147d3a2
commit d72a9af528
2 changed files with 7 additions and 3 deletions

View File

@ -23,13 +23,16 @@
#include <stdint.h> #include <stdint.h>
#include "config.h" #include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/attributes.h"
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/intmath.h" #include "libavutil/intmath.h"
#include "mathops.h" #include "mathops.h"
#include "celp_math.h" #include "celp_math.h"
#ifdef G729_BITEXACT #ifdef G729_BITEXACT
#include "libavutil/avassert.h"
static const uint16_t exp2a[]= static const uint16_t exp2a[]=
{ {
0, 1435, 2901, 4400, 5931, 7496, 9096, 10730, 0, 1435, 2901, 4400, 5931, 7496, 9096, 10730,
@ -108,7 +111,7 @@ int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
return sum; return sum;
} }
void ff_celp_math_init(CELPMContext *c) av_cold void ff_celp_math_init(CELPMContext *c)
{ {
c->dot_productf = ff_scalarproduct_float_c; c->dot_productf = ff_scalarproduct_float_c;

View File

@ -53,6 +53,7 @@
*/ */
#include "config.h" #include "config.h"
#include "libavcodec/celp_math.h" #include "libavcodec/celp_math.h"
#include "libavutil/attributes.h"
#include "libavutil/mips/asmdefs.h" #include "libavutil/mips/asmdefs.h"
#if HAVE_INLINE_ASM #if HAVE_INLINE_ASM
@ -84,7 +85,7 @@ static float ff_dot_productf_mips(const float* a, const float* b,
#endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */ #endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */
#endif /* HAVE_INLINE_ASM */ #endif /* HAVE_INLINE_ASM */
void ff_celp_math_init_mips(CELPMContext *c) av_cold void ff_celp_math_init_mips(CELPMContext *c)
{ {
#if HAVE_INLINE_ASM #if HAVE_INLINE_ASM
#if !HAVE_MIPS32R6 && !HAVE_MIPS64R6 #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6