lkml.org 
[lkml]   [2008]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: VolanoMark regression with 2.6.27-rc1
Date
On Thursday 21 August 2008 03:21, Peter Zijlstra wrote:
> Ok, so one last time (I hope!)..
>
> Everybody happy with this?


> Index: linux-2.6/include/linux/kernel.h
> ===================================================================
> --- linux-2.6.orig/include/linux/kernel.h
> +++ linux-2.6/include/linux/kernel.h
> @@ -367,6 +367,12 @@ static inline char *pack_hex_byte(char *
> (void) (&_max1 == &_max2); \
> _max1 > _max2 ? _max1 : _max2; })
>
> +#define avg(x, y) ({ \
> + typeof(x) _avg1 = (x); \
> + typeof(y) _avg2 = (y); \
> + (void) (&_avg1 == &_avg2); \
> + _avg1 + (_avg2 - _avg1)/2; })

That's not going to work with unsigned types.


\
 
 \ /
  Last update: 2008-08-20 19:59    [W:0.241 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site