From owner-cvs-all Mon Oct 9 5:34:55 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D8C7B37B66D; Mon, 9 Oct 2000 05:34:51 -0700 (PDT) Received: (from dwmalone@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA38816; Mon, 9 Oct 2000 05:34:51 -0700 (PDT) (envelope-from dwmalone@FreeBSD.org) Message-Id: <200010091234.FAA38816@freefall.freebsd.org> From: David Malone Date: Mon, 9 Oct 2000 05:34:51 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include bitstring.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dwmalone 2000/10/09 05:34:51 PDT Modified files: include bitstring.h Log: Cleanup of bitstring.h: 1) Add FreeBSD: tag. 2) Add parenthesis around macro args. 3) Add parenthesis around macros which are expressions. 4) Add do { ... } while (0) around macros which are compound statements. 5) Sync bitstr_size and bit_alloc with neater versions from NetBSD. 6) Fix bit_ffs and bit_ffc so that they don't search off the end of the bitstirng. 7) Try to avoid rightshifting signed ints. I didn't take NetBSD's version directly as the macros are significantly slower for long bitstrings. Bruce reviewed a previous version of this patch. PR: 21204 Submitted by: bob@immure.com Reviewed by: bde Revision Changes Path 1.2 +46 -39 src/include/bitstring.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message