Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Fix pointer aligned macro to match the original (tha...



details:   https://anonhg.NetBSD.org/src/rev/04034282c603
branches:  trunk
changeset: 952722:04034282c603
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 15 18:33:28 2021 +0000

description:
Fix pointer aligned macro to match the original (thanks @mlelstv)

diffstat:

 sys/sys/param.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2d3538d11dad -r 04034282c603 sys/sys/param.h
--- a/sys/sys/param.h   Mon Feb 15 18:23:32 2021 +0000
+++ b/sys/sys/param.h   Mon Feb 15 18:33:28 2021 +0000
@@ -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
 
 /*



Home | Main Index | Thread Index | Old Index