Module Name: src Committed By: tsutsui Date: Sat May 9 04:03:47 UTC 2009
Modified Files: src/sys/sys: param.h Log Message: Add necessary parentheses to roundup2() macro. To generate a diff of this commit: cvs rdiff -u -r1.344 -r1.345 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/param.h diff -u src/sys/sys/param.h:1.344 src/sys/sys/param.h:1.345 --- src/sys/sys/param.h:1.344 Fri Apr 17 02:38:26 2009 +++ src/sys/sys/param.h Sat May 9 04:03:47 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.344 2009/04/17 02:38:26 yamt Exp $ */ +/* $NetBSD: param.h,v 1.345 2009/05/09 04:03:47 tsutsui Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -340,7 +340,7 @@ #endif #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) #define rounddown(x,y) (((x)/(y))*(y)) -#define roundup2(x, m) (((x) + m - 1) & ~(m - 1)) +#define roundup2(x, m) (((x) + (m) - 1) & ~((m) - 1)) #define powerof2(x) ((((x)-1)&(x))==0) /* Macros for min/max. */