Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2000 05:34:51 -0700 (PDT)
From:      David Malone <dwmalone@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/include bitstring.h
Message-ID:  <200010091234.FAA38816@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010091234.FAA38816>