[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH] Correct comments in kcompiler.h
Commit message:
Correct comments.
Contributed by David Galvez.
diff -r 59e6e4c30111 -r 3cd8ce205219 sys/mint/kcompiler.h
--- a/sys/mint/kcompiler.h Fri Nov 21 17:57:14 2014 +0100
+++ b/sys/mint/kcompiler.h Fri Nov 21 18:01:40 2014 +0100
@@ -116,8 +116,8 @@
# define ROUNDUP(a,b) ((((a) + ((b) - 1)) / (b)) * (b))
# define ROUNDDOWN(a,b) (((a) / (b)) * (b))
-# define ROUNDUP2(a,b) (((a) + (b) - 1) & ~((b) - 1)) /* if y is power of two */
-# define ROUNDDOWN2(a,b) ((a) & (~((b) - 1))) /* if y is power of two */
+# define ROUNDUP2(a,b) (((a) + (b) - 1) & ~((b) - 1)) /* if b is power of two */
+# define ROUNDDOWN2(a,b) ((a) & (~((b) - 1))) /* if b is power of two */
# define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a) - 1)
# define __ALIGN_MASK(x,mask) (((x) + (mask)) & ~(mask))