[FFmpeg-devel] [PATCH]SH patch from www.dgstation.co.kr
Carl Eugen Hoyos
cehoyos
Thu Jan 8 20:40:00 CET 2009
Hi!
I was looking at issue 769 and found three patches on the company's
homepage. One disables some optimisation on SH, one totally breaks the
build and I'm attaching the third one.
Carl Eugen
-------------- next part --------------
Index: libavcodec/sh4/dsputil_sh4.c
===================================================================
--- libavcodec/sh4/dsputil_sh4.c (revision 16313)
+++ libavcodec/sh4/dsputil_sh4.c (working copy)
@@ -27,10 +27,10 @@
static void memzero_align8(void *dst,size_t size)
{
int fpscr;
- fp_single_enter(fpscr);
dst = (char *)dst + size;
size /= 32;
__asm__ volatile (
+ " fschg\n" //single float mode
" fldi0 fr0\n"
" fldi0 fr1\n"
" fschg\n" // double
@@ -43,7 +43,6 @@
" fmov dr0, at -%0\n"
" fschg" //back to single
: "+r"(dst),"+r"(size) :: "memory" );
- fp_single_leave(fpscr);
}
static void clear_blocks_sh4(DCTELEM *blocks)
More information about the ffmpeg-devel
mailing list