lkml.org 
[lkml]   [2009]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] perf tools: Prevent from BITS_PER_LONG redefinition
From
Date
On Fri, 2009-12-18 at 23:05 +0100, Frederic Weisbecker wrote:
> +#ifndef BITS_PER_LONG
> /* CHECKME: Not sure both always match */
> #define BITS_PER_LONG __WORDSIZE
> +#endif

Why use __WORDSIZE if you're not sure?

(8*sizeof(long)) is simple and unambiguous.



\
 
 \ /
  Last update: 2009-12-19 10:29    [W:0.633 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site