Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
73ff983e
Commit
73ff983e
authored
Jan 30, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fft: x86: cosmetics: Drop silly comments, add comment, whitespace
parent
ce9d7da7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
fft_init.c
libavcodec/x86/fft_init.c
+6
-5
No files found.
libavcodec/x86/fft_init.c
View file @
73ff983e
...
@@ -17,9 +17,11 @@
...
@@ -17,9 +17,11 @@
*/
*/
#include "config.h"
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavutil/x86/cpu.h"
#include "fft.h"
#include "fft.h"
av_cold
void
ff_fft_init_x86
(
FFTContext
*
s
)
av_cold
void
ff_fft_init_x86
(
FFTContext
*
s
)
...
@@ -28,28 +30,27 @@ av_cold void ff_fft_init_x86(FFTContext *s)
...
@@ -28,28 +30,27 @@ av_cold void ff_fft_init_x86(FFTContext *s)
#if ARCH_X86_32
#if ARCH_X86_32
if
(
EXTERNAL_AMD3DNOW
(
cpu_flags
))
{
if
(
EXTERNAL_AMD3DNOW
(
cpu_flags
))
{
/* 3DNow! for K6-2/3 */
s
->
imdct_calc
=
ff_imdct_calc_3dnow
;
s
->
imdct_calc
=
ff_imdct_calc_3dnow
;
s
->
imdct_half
=
ff_imdct_half_3dnow
;
s
->
imdct_half
=
ff_imdct_half_3dnow
;
s
->
fft_calc
=
ff_fft_calc_3dnow
;
s
->
fft_calc
=
ff_fft_calc_3dnow
;
}
}
if
(
EXTERNAL_AMD3DNOWEXT
(
cpu_flags
))
{
if
(
EXTERNAL_AMD3DNOWEXT
(
cpu_flags
))
{
/* 3DNowEx for K7 */
s
->
imdct_calc
=
ff_imdct_calc_3dnowext
;
s
->
imdct_calc
=
ff_imdct_calc_3dnowext
;
s
->
imdct_half
=
ff_imdct_half_3dnowext
;
s
->
imdct_half
=
ff_imdct_half_3dnowext
;
s
->
fft_calc
=
ff_fft_calc_3dnowext
;
s
->
fft_calc
=
ff_fft_calc_3dnowext
;
}
}
#endif
#endif
/* ARCH_X86_32 */
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
if
(
EXTERNAL_SSE
(
cpu_flags
))
{
/* SSE for P3/P4/K8 */
s
->
imdct_calc
=
ff_imdct_calc_sse
;
s
->
imdct_calc
=
ff_imdct_calc_sse
;
s
->
imdct_half
=
ff_imdct_half_sse
;
s
->
imdct_half
=
ff_imdct_half_sse
;
s
->
fft_permute
=
ff_fft_permute_sse
;
s
->
fft_permute
=
ff_fft_permute_sse
;
s
->
fft_calc
=
ff_fft_calc_sse
;
s
->
fft_calc
=
ff_fft_calc_sse
;
s
->
fft_permutation
=
FF_FFT_PERM_SWAP_LSBS
;
s
->
fft_permutation
=
FF_FFT_PERM_SWAP_LSBS
;
}
}
if
(
EXTERNAL_AVX_FAST
(
cpu_flags
)
&&
s
->
nbits
>=
5
)
{
if
(
EXTERNAL_AVX_FAST
(
cpu_flags
)
&&
s
->
nbits
>=
5
)
{
/* AVX for SB */
s
->
imdct_half
=
ff_imdct_half_avx
;
s
->
imdct_half
=
ff_imdct_half_avx
;
s
->
fft_calc
=
ff_fft_calc_avx
;
s
->
fft_calc
=
ff_fft_calc_avx
;
s
->
fft_permutation
=
FF_FFT_PERM_AVX
;
s
->
fft_permutation
=
FF_FFT_PERM_AVX
;
...
...
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