mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
optimization -- lots of conditional jumps in inner loops are bad
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9996 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
748e2bcb48
commit
c4090108ff
@ -238,7 +238,8 @@ static void block_diffs_MMX(struct metrics *m, unsigned char *old, unsigned char
|
||||
#endif
|
||||
|
||||
//#define MAG(a) ((a)*(a))
|
||||
#define MAG(a) (abs(a))
|
||||
//#define MAG(a) (abs(a))
|
||||
#define MAG(a) (((a)^((a)>>31))-((a)>>31))
|
||||
|
||||
//#define LOWPASS(s) (((s)[-2] + 4*(s)[-1] + 6*(s)[0] + 4*(s)[1] + (s)[2])>>4)
|
||||
//#define LOWPASS(s) (((s)[-1] + 2*(s)[0] + (s)[1])>>2)
|
||||
|
Loading…
Reference in New Issue
Block a user