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
1768e43c
Commit
1768e43c
authored
Jan 21, 2013
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbisdsp: change block_size type from int to intptr_t.
This saves one instruction in the x86-64 assembly.
parent
93af2734
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
7 deletions
+13
-7
vorbisdsp_init_arm.c
libavcodec/arm/vorbisdsp_init_arm.c
+2
-1
vorbisdsp_altivec.c
libavcodec/ppc/vorbisdsp_altivec.c
+1
-1
vorbis.h
libavcodec/vorbis.h
+1
-1
vorbisdec.c
libavcodec/vorbisdec.c
+1
-1
vorbisdsp.h
libavcodec/vorbisdsp.h
+4
-1
vorbisdsp_init.c
libavcodec/x86/vorbisdsp_init.c
+4
-2
No files found.
libavcodec/arm/vorbisdsp_init_arm.c
View file @
1768e43c
...
...
@@ -24,7 +24,8 @@
#include "libavutil/arm/cpu.h"
#include "libavcodec/vorbisdsp.h"
void
ff_vorbis_inverse_coupling_neon
(
float
*
mag
,
float
*
ang
,
int
blocksize
);
void
ff_vorbis_inverse_coupling_neon
(
float
*
mag
,
float
*
ang
,
intptr_t
blocksize
);
void
ff_vorbisdsp_init_arm
(
VorbisDSPContext
*
c
)
{
...
...
libavcodec/ppc/vorbisdsp_altivec.c
View file @
1768e43c
...
...
@@ -27,7 +27,7 @@
#if HAVE_ALTIVEC
static
void
vorbis_inverse_coupling_altivec
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
int
ptr_t
blocksize
)
{
int
i
;
vector
float
m
,
a
;
...
...
libavcodec/vorbis.h
View file @
1768e43c
...
...
@@ -43,7 +43,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num);
void
ff_vorbis_floor1_render_list
(
vorbis_floor1_entry
*
list
,
int
values
,
uint16_t
*
y_list
,
int
*
flag
,
int
multiplier
,
float
*
out
,
int
samples
);
void
ff_vorbis_inverse_coupling
(
float
*
mag
,
float
*
ang
,
int
blocksize
);
void
ff_vorbis_inverse_coupling
(
float
*
mag
,
float
*
ang
,
int
ptr_t
blocksize
);
#define ilog(i) av_log2(2*(i))
...
...
libavcodec/vorbisdec.c
View file @
1768e43c
...
...
@@ -1450,7 +1450,7 @@ static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr,
}
}
void
ff_vorbis_inverse_coupling
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
void
ff_vorbis_inverse_coupling
(
float
*
mag
,
float
*
ang
,
int
ptr_t
blocksize
)
{
int
i
;
for
(
i
=
0
;
i
<
blocksize
;
i
++
)
{
...
...
libavcodec/vorbisdsp.h
View file @
1768e43c
...
...
@@ -19,9 +19,12 @@
#ifndef AVCODEC_VORBISDSP_H
#define AVCODEC_VORBISDSP_H
#include <stdint.h>
typedef
struct
VorbisDSPContext
{
/* assume len is a multiple of 4, and arrays are 16-byte aligned */
void
(
*
vorbis_inverse_coupling
)(
float
*
mag
,
float
*
ang
,
int
blocksize
);
void
(
*
vorbis_inverse_coupling
)(
float
*
mag
,
float
*
ang
,
intptr_t
blocksize
);
}
VorbisDSPContext
;
void
ff_vorbisdsp_init
(
VorbisDSPContext
*
dsp
);
...
...
libavcodec/x86/vorbisdsp_init.c
View file @
1768e43c
...
...
@@ -25,7 +25,8 @@
#if HAVE_INLINE_ASM
#if ARCH_X86_32
static
void
vorbis_inverse_coupling_3dnow
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
static
void
vorbis_inverse_coupling_3dnow
(
float
*
mag
,
float
*
ang
,
intptr_t
blocksize
)
{
int
i
;
__asm__
volatile
(
"pxor %%mm7, %%mm7"
:
);
...
...
@@ -54,7 +55,8 @@ static void vorbis_inverse_coupling_3dnow(float *mag, float *ang, int blocksize)
}
#endif
static
void
vorbis_inverse_coupling_sse
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
static
void
vorbis_inverse_coupling_sse
(
float
*
mag
,
float
*
ang
,
intptr_t
blocksize
)
{
int
i
;
...
...
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