Module Name: src Committed By: roy Date: Thu Mar 7 12:07:42 UTC 2019
Modified Files: src/sys/sys: rbtree.h Log Message: rbtree: Use __BIT macro to avoid a lot of compiler warnings To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/sys/rbtree.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/rbtree.h diff -u src/sys/sys/rbtree.h:1.3 src/sys/sys/rbtree.h:1.4 --- src/sys/sys/rbtree.h:1.3 Thu Mar 7 12:05:54 2019 +++ src/sys/sys/rbtree.h Thu Mar 7 12:07:42 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: rbtree.h,v 1.3 2019/03/07 12:05:54 roy Exp $ */ +/* $NetBSD: rbtree.h,v 1.4 2019/03/07 12:07:42 roy Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -57,8 +57,8 @@ typedef struct rb_node { * rb_node will have an alignment of 4 or 8 bytes. */ uintptr_t rb_info; -#define RB_FLAG_POSITION 0x2 -#define RB_FLAG_RED 0x1 +#define RB_FLAG_POSITION __BIT(1) +#define RB_FLAG_RED __BIT(0) #define RB_FLAG_MASK (RB_FLAG_POSITION|RB_FLAG_RED) #define RB_FATHER(rb) \ ((struct rb_node *)((rb)->rb_info & ~RB_FLAG_MASK))