Module Name: src
Committed By: christos
Date: Mon Feb 15 18:33:29 UTC 2021
Modified Files:
src/sys/sys: param.h
Log Message:
Fix pointer aligned macro to match the original (thanks @mlelstv)
To generate a diff of this commit:
cvs rdiff -u -r1.686 -r1.687 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.686 src/sys/sys/param.h:1.687
--- src/sys/sys/param.h:1.686 Mon Feb 15 10:53:49 2021
+++ src/sys/sys/param.h Mon Feb 15 13:33:28 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.686 2021/02/15 15:53:49 christos Exp $ */
+/* $NetBSD: param.h,v 1.687 2021/02/15 18:33:28 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -290,7 +290,7 @@
#ifdef __NO_STRICT_ALIGNMENT
#define POINTER_ALIGNED_P(p, a) 1
#else
-#define POINTER_ALIGNED_P(p, a) ((((uintptr_t)(p) + (a)) & ~(a)) == 0)
+#define POINTER_ALIGNED_P(p, a) (((uintptr_t)(p) + (a)) == 0)
#endif
/*