Module Name: src Committed By: yamt Date: Tue May 26 22:37:50 UTC 2009
Modified Files: src/common/lib/libc/gen: rpst.c Log Message: sprinkle some inline To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/common/lib/libc/gen/rpst.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/gen/rpst.c diff -u src/common/lib/libc/gen/rpst.c:1.5 src/common/lib/libc/gen/rpst.c:1.6 --- src/common/lib/libc/gen/rpst.c:1.5 Mon May 25 14:54:06 2009 +++ src/common/lib/libc/gen/rpst.c Tue May 26 22:37:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rpst.c,v 1.5 2009/05/25 14:54:06 yamt Exp $ */ +/* $NetBSD: rpst.c,v 1.6 2009/05/26 22:37:50 yamt Exp $ */ /*- * Copyright (c)2009 YAMAMOTO Takashi, @@ -43,10 +43,10 @@ #include <sys/cdefs.h> #if defined(_KERNEL) -__KERNEL_RCSID(0, "$NetBSD: rpst.c,v 1.5 2009/05/25 14:54:06 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rpst.c,v 1.6 2009/05/26 22:37:50 yamt Exp $"); #include <sys/param.h> #else /* defined(_KERNEL) */ -__RCSID("$NetBSD: rpst.c,v 1.5 2009/05/25 14:54:06 yamt Exp $"); +__RCSID("$NetBSD: rpst.c,v 1.6 2009/05/26 22:37:50 yamt Exp $"); #include <assert.h> #include <stdbool.h> #include <string.h> @@ -389,14 +389,14 @@ return rpst_iterate_next(it); } -static unsigned int +static inline unsigned int rpst_node_on_edge_p(const struct rpst_node *n, uint64_t val, uint64_t mask) { return ((n->n_x ^ val) & ((-mask) << 1)) == 0; } -static uint64_t +static inline uint64_t rpst_maxidx(const struct rpst_node *n, uint64_t max_x, uint64_t mask) { @@ -407,7 +407,7 @@ } } -static uint64_t +static inline uint64_t rpst_minidx(const struct rpst_node *n, uint64_t min_x, uint64_t mask) {