From bb270c0896b39e1ae9277355e3c120ed3feb64a3 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 22 Dec 2005 01:10:11 +0000 Subject: COSMETICS: tabs --> spaces, some prettyprinting Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mem.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libavcodec/mem.c') diff --git a/libavcodec/mem.c b/libavcodec/mem.c index 0f4005f6b3..2f972b7c59 100644 --- a/libavcodec/mem.c +++ b/libavcodec/mem.c @@ -64,8 +64,8 @@ void *av_malloc(unsigned int size) Indeed, we should align it: on 4 for 386 on 16 for 486 - on 32 for 586, PPro - k6-III - on 64 for K7 (maybe for P3 too). + on 32 for 586, PPro - k6-III + on 64 for K7 (maybe for P3 too). Because L1 and L2 caches are aligned on those values. But I don't want to code such logic here! */ @@ -76,13 +76,13 @@ void *av_malloc(unsigned int size) Why not larger? because i didnt see a difference in benchmarks ... */ /* benchmarks with p3 - memalign(64)+1 3071,3051,3032 - memalign(64)+2 3051,3032,3041 - memalign(64)+4 2911,2896,2915 - memalign(64)+8 2545,2554,2550 - memalign(64)+16 2543,2572,2563 - memalign(64)+32 2546,2545,2571 - memalign(64)+64 2570,2533,2558 + memalign(64)+1 3071,3051,3032 + memalign(64)+2 3051,3032,3041 + memalign(64)+4 2911,2896,2915 + memalign(64)+8 2545,2554,2550 + memalign(64)+16 2543,2572,2563 + memalign(64)+32 2546,2545,2571 + memalign(64)+64 2570,2533,2558 btw, malloc seems to do 8 byte alignment by default here */ -- cgit v1.2.3