[FFmpeg-devel] [PATCH 1/2] Remove unneeded add bias from 3 functions. (original) (raw)
Ronald S. Bultje rsbultje
Mon Jan 31 17:13:20 CET 2011
- Previous message: [FFmpeg-devel] [PATCH 1/2] Remove unneeded add bias from 3 functions.
- Next message: [FFmpeg-devel] [PATCH 1/2] Remove unneeded add bias from 3 functions.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
2011/1/30 M?ns Rullg?rd : [..]
@ -2191,9 +2191,8 @@ static void vectorfmuladdsse(float *dst, const float *src0, const float *src1 }
static void vectorfmulwindow3dnow2(float *dst, const float *src0, const float *src1, - const float *win, float addbias, int len){ + const float *win, int len){ #if HAVE6REGS - if(addbias == 0){ x86reg i = -len*4; x86reg j = len*4-8; asm volatile( @@ -2220,15 +2219,14 @@ static void vectorfmulwindow3dnow2(float *dst, const float *src0, const float :"+r"(i), "+r"(j) :"r"(dst+len), "r"(src0+len), "r"(src1), "r"(win+len) ); - }else +#else + ffvectorfmulwindowc(dst, src0, src1, win, len); #endif - ffvectorfmulwindowc(dst, src0, src1, win, addbias, len); } static void vectorfmulwindowsse(float *dst, const float *src0, const float *src1, - const float *win, float addbias, int len){ + const float *win, int len){ #if HAVE6REGS - if(addbias == 0){ x86reg i = -len*4; x86reg j = len*4-16; asm volatile( @@ -2256,9 +2254,9 @@ static void vectorfmulwindowsse(float *dst, const float *src0, const float *s :"+r"(i), "+r"(j) :"r"(dst+len), "r"(src0+len), "r"(src1), "r"(win+len) ); - }else +#else + ffvectorfmulwindowc(dst, src0, src1, win, len); #endif - ffvectorfmulwindowc(dst, src0, src1, win, addbias, len); } static void vectorclipfsse(float *dst, const float *src, float min, float max,
The #if / .. is no longer necessary, just put the whole function under #if HAVE_6REGS (including setting the functionname in init), so that the whole function no longer exists if HAVE_6REGS is not set.
Ronald
- Previous message: [FFmpeg-devel] [PATCH 1/2] Remove unneeded add bias from 3 functions.
- Next message: [FFmpeg-devel] [PATCH 1/2] Remove unneeded add bias from 3 functions.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]