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
c260b596
Commit
c260b596
authored
Nov 20, 2008
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SH4: fix memzero_align8()
Originally committed as revision 15888 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1a9e9a2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
dsputil_sh4.c
libavcodec/sh4/dsputil_sh4.c
+8
-7
No files found.
libavcodec/sh4/dsputil_sh4.c
View file @
c260b596
...
...
@@ -22,13 +22,15 @@
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
#include "sh4.h"
static
void
memzero_align8
(
void
*
dst
,
size_t
size
)
{
__asm__
(
#if defined(__SH4__)
" fschg
\n
"
//single float mode
#endif
int
fpscr
;
fp_single_enter
(
fpscr
);
dst
=
(
char
*
)
dst
+
size
;
size
/=
32
;
__asm__
volatile
(
" fldi0 fr0
\n
"
" fldi0 fr1
\n
"
" fschg
\n
"
// double
...
...
@@ -39,10 +41,9 @@ static void memzero_align8(void *dst,size_t size)
" fmov dr0,@-%0
\n
"
" bf.s 1b
\n
"
" fmov dr0,@-%0
\n
"
#if defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__)
" fschg"
//back to single
#endif
:
:
"r"
((
char
*
)
dst
+
size
),
"r"
(
size
/
32
)
:
"memory"
);
:
"+r"
(
dst
),
"+r"
(
size
)
::
"memory"
);
fp_single_leave
(
fpscr
);
}
static
void
clear_blocks_sh4
(
DCTELEM
*
blocks
)
...
...
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