diff --git a/libavutil/arm/float_dsp_init_arm.c b/libavutil/arm/float_dsp_init_arm.c index b133d32c9a8e1806a20ab8a8096bb0e10922246a..e45969e2eb8a960d4578e9ffab84c4fd43ec61b2 100644 --- a/libavutil/arm/float_dsp_init_arm.c +++ b/libavutil/arm/float_dsp_init_arm.c @@ -18,11 +18,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/float_dsp.h" #include "cpu.h" #include "float_dsp_arm.h" -void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp) +av_cold void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavutil/arm/float_dsp_init_neon.c b/libavutil/arm/float_dsp_init_neon.c index a7245ad92b966df3400818c8261ddd3ffe57559c..617bf5d576c2ce39fa3b17198f082b15a443e240 100644 --- a/libavutil/arm/float_dsp_init_neon.c +++ b/libavutil/arm/float_dsp_init_neon.c @@ -21,6 +21,7 @@ #include <stdint.h> +#include "libavutil/attributes.h" #include "libavutil/float_dsp.h" #include "float_dsp_arm.h" @@ -45,7 +46,7 @@ void ff_butterflies_float_neon(float *v1, float *v2, int len); float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len); -void ff_float_dsp_init_neon(AVFloatDSPContext *fdsp) +av_cold void ff_float_dsp_init_neon(AVFloatDSPContext *fdsp) { fdsp->vector_fmul = ff_vector_fmul_neon; fdsp->vector_fmac_scalar = ff_vector_fmac_scalar_neon; diff --git a/libavutil/arm/float_dsp_init_vfp.c b/libavutil/arm/float_dsp_init_vfp.c index 7247d567627f7e36f4244a808881225829bffd98..b6a226a4ddb8734da0ac81c91b77e75ad8fc0c66 100644 --- a/libavutil/arm/float_dsp_init_vfp.c +++ b/libavutil/arm/float_dsp_init_vfp.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/float_dsp.h" #include "cpu.h" #include "float_dsp_arm.h" @@ -28,7 +29,7 @@ void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1, void ff_vector_fmul_reverse_vfp(float *dst, const float *src0, const float *src1, int len); -void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp) +av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp) { int cpu_flags = av_get_cpu_flags(); diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c index a40b029a29ae8b5956430d335edee7b0a342aa8c..3eda27a3c3045b9c370d0e0d0b2e9dcb1b66d2b0 100644 --- a/libavutil/float_dsp.c +++ b/libavutil/float_dsp.c @@ -17,7 +17,7 @@ */ #include "config.h" - +#include "libavutil/attributes.h" #include "float_dsp.h" static void vector_fmul_c(float *dst, const float *src0, const float *src1, @@ -112,7 +112,7 @@ float avpriv_scalarproduct_float_c(const float *v1, const float *v2, int len) return p; } -void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact) +av_cold void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact) { fdsp->vector_fmul = vector_fmul_c; fdsp->vector_fmac_scalar = vector_fmac_scalar_c; diff --git a/libavutil/hmac.c b/libavutil/hmac.c index f82b5a3d77e709d89733c0098bb125a94a2c9510..f87728e181bdb8c5d1170041ba9ae58424ecb1d3 100644 --- a/libavutil/hmac.c +++ b/libavutil/hmac.c @@ -20,6 +20,7 @@ #include <string.h> +#include "attributes.h" #include "hmac.h" #include "md5.h" #include "sha.h" @@ -38,7 +39,7 @@ struct AVHMAC { int keylen; }; -static void sha1_init(void *ctx) +static av_cold void sha1_init(void *ctx) { av_sha_init(ctx, 160); } diff --git a/libavutil/lls.c b/libavutil/lls.c index bbcab6cf9fbb774076bf323326decdd05a45cc60..246189bdf73c511a52a204e4907784c97b4f28fe 100644 --- a/libavutil/lls.c +++ b/libavutil/lls.c @@ -28,10 +28,11 @@ #include <math.h> #include <string.h> +#include "attributes.h" #include "version.h" #include "lls.h" -void avpriv_init_lls(LLSModel *m, int indep_count) +av_cold void avpriv_init_lls(LLSModel *m, int indep_count) { memset(m, 0, sizeof(LLSModel)); m->indep_count = indep_count; @@ -118,7 +119,7 @@ double avpriv_evaluate_lls(LLSModel *m, double *param, int order) } #if FF_API_LLS_PRIVATE -void av_init_lls(LLSModel *m, int indep_count) +av_cold void av_init_lls(LLSModel *m, int indep_count) { avpriv_init_lls(m, indep_count); } diff --git a/libavutil/ppc/float_dsp_init.c b/libavutil/ppc/float_dsp_init.c index bd682f5a3043c672eeda8fb8b0093ecda8694f5b..4ed278798e3d3a7a50d214b7d447c431632f4935 100644 --- a/libavutil/ppc/float_dsp_init.c +++ b/libavutil/ppc/float_dsp_init.c @@ -19,11 +19,12 @@ */ #include "config.h" +#include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/float_dsp.h" #include "float_dsp_altivec.h" -void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) +av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) { #if HAVE_ALTIVEC int mm_flags = av_get_cpu_flags(); diff --git a/libavutil/sha.c b/libavutil/sha.c index c7c6ce38cfc04ead96fc606840bc366a5467a4ef..2d9b58cda65502f63fc15b09164ad87f6345b9b6 100644 --- a/libavutil/sha.c +++ b/libavutil/sha.c @@ -22,6 +22,8 @@ */ #include <string.h> + +#include "attributes.h" #include "avutil.h" #include "bswap.h" #include "sha.h" @@ -251,7 +253,7 @@ static void sha256_transform(uint32_t *state, const uint8_t buffer[64]) } -int av_sha_init(AVSHA* ctx, int bits) +av_cold int av_sha_init(AVSHA *ctx, int bits) { ctx->digest_len = bits >> 5; switch (bits) { diff --git a/libavutil/x86/float_dsp_init.c b/libavutil/x86/float_dsp_init.c index 34863013ccff052bc371c764244715edfaf67ecc..03925da1117d06a05417b700ff7be09892482415 100644 --- a/libavutil/x86/float_dsp_init.c +++ b/libavutil/x86/float_dsp_init.c @@ -18,6 +18,7 @@ #include "config.h" +#include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/float_dsp.h" #include "cpu.h" @@ -121,7 +122,7 @@ static void vector_fmul_window_sse(float *dst, const float *src0, } #endif /* HAVE_6REGS && HAVE_INLINE_ASM */ -void ff_float_dsp_init_x86(AVFloatDSPContext *fdsp) +av_cold void ff_float_dsp_init_x86(AVFloatDSPContext *fdsp) { int mm_flags = av_get_cpu_flags();