Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1fda184a
Commit
1fda184a
authored
Apr 30, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: Add av_cold attributes to init functions missing them
parent
20c86571
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
11 deletions
+20
-11
float_dsp_init_arm.c
libavutil/arm/float_dsp_init_arm.c
+2
-1
float_dsp_init_neon.c
libavutil/arm/float_dsp_init_neon.c
+2
-1
float_dsp_init_vfp.c
libavutil/arm/float_dsp_init_vfp.c
+2
-1
float_dsp.c
libavutil/float_dsp.c
+2
-2
hmac.c
libavutil/hmac.c
+2
-1
lls.c
libavutil/lls.c
+3
-2
float_dsp_init.c
libavutil/ppc/float_dsp_init.c
+2
-1
sha.c
libavutil/sha.c
+3
-1
float_dsp_init.c
libavutil/x86/float_dsp_init.c
+2
-1
No files found.
libavutil/arm/float_dsp_init_arm.c
View file @
1fda184a
...
...
@@ -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
();
...
...
libavutil/arm/float_dsp_init_neon.c
View file @
1fda184a
...
...
@@ -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
;
...
...
libavutil/arm/float_dsp_init_vfp.c
View file @
1fda184a
...
...
@@ -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
();
...
...
libavutil/float_dsp.c
View file @
1fda184a
...
...
@@ -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
;
...
...
libavutil/hmac.c
View file @
1fda184a
...
...
@@ -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
);
}
...
...
libavutil/lls.c
View file @
1fda184a
...
...
@@ -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
);
}
...
...
libavutil/ppc/float_dsp_init.c
View file @
1fda184a
...
...
@@ -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
();
...
...
libavutil/sha.c
View file @
1fda184a
...
...
@@ -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
)
{
...
...
libavutil/x86/float_dsp_init.c
View file @
1fda184a
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment