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
cf5aed5b
Commit
cf5aed5b
authored
Aug 18, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 6020 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b4902c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
fdct_mmx.c
libavcodec/i386/fdct_mmx.c
+9
-21
No files found.
libavcodec/i386/fdct_mmx.c
View file @
cf5aed5b
...
@@ -504,56 +504,44 @@ static always_inline void fdct_row_mmx(const int16_t *in, int16_t *out, const in
...
@@ -504,56 +504,44 @@ static always_inline void fdct_row_mmx(const int16_t *in, int16_t *out, const in
void
ff_fdct_mmx
(
int16_t
*
block
)
void
ff_fdct_mmx
(
int16_t
*
block
)
{
{
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
8
);
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
8
);
int16_t
*
const
block_tmp
=
(
int16_t
*
)
align_tmp
;
int16_t
*
block1
=
(
int16_t
*
)
align_tmp
;
int16_t
*
block1
,
*
out
;
const
int16_t
*
table
=
tab_frw_01234567
;
const
int16_t
*
table
;
int
i
;
int
i
;
block1
=
block_tmp
;
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
4
);
fdct_col
(
block
,
block1
,
4
);
block1
=
block_tmp
;
table
=
tab_frw_01234567
;
out
=
block
;
for
(
i
=
8
;
i
>
0
;
i
--
)
{
for
(
i
=
8
;
i
>
0
;
i
--
)
{
fdct_row_mmx
(
block1
,
out
,
table
);
fdct_row_mmx
(
block1
,
block
,
table
);
block1
+=
8
;
block1
+=
8
;
table
+=
32
;
table
+=
32
;
out
+=
8
;
block
+=
8
;
}
}
}
}
void
ff_fdct_mmx2
(
int16_t
*
block
)
void
ff_fdct_mmx2
(
int16_t
*
block
)
{
{
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
8
);
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
8
);
int16_t
*
const
block_tmp
=
(
int16_t
*
)
align_tmp
;
int16_t
*
block1
=
(
int16_t
*
)
align_tmp
;
int16_t
*
block1
,
*
out
;
const
int16_t
*
table
=
tab_frw_01234567
;
const
int16_t
*
table
;
int
i
;
int
i
;
block1
=
block_tmp
;
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
4
);
fdct_col
(
block
,
block1
,
4
);
block1
=
block_tmp
;
table
=
tab_frw_01234567
;
out
=
block
;
for
(
i
=
8
;
i
>
0
;
i
--
)
{
for
(
i
=
8
;
i
>
0
;
i
--
)
{
fdct_row_mmx2
(
block1
,
out
,
table
);
fdct_row_mmx2
(
block1
,
block
,
table
);
block1
+=
8
;
block1
+=
8
;
table
+=
32
;
table
+=
32
;
out
+=
8
;
block
+=
8
;
}
}
}
}
void
ff_fdct_sse2
(
int16_t
*
block
)
void
ff_fdct_sse2
(
int16_t
*
block
)
{
{
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
16
);
int64_t
align_tmp
[
16
]
ATTR_ALIGN
(
16
);
int16_t
*
const
block_tmp
=
(
int16_t
*
)
align_tmp
;
int16_t
*
const
block1
=
(
int16_t
*
)
align_tmp
;
int16_t
*
block1
;
block1
=
block_tmp
;
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
0
);
fdct_col
(
block
,
block1
,
4
);
fdct_col
(
block
,
block1
,
4
);
...
...
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