You've already forked FFmpeg
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:
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user