By Jacobs Technology Inc.
Posted: Feb 8, 2009
Rating:
.
190k
Generic Bit Field Insertion/Extraction* bfix has two routines for insertion(bfi()) and extraction(bfx()) of bit fields in data of arbitrary length. It can be compiled with little/big endian or have run timechecking. It is 32/64 bit safe.
*Be sure to help out the Embedded Community by rating the code after you have had a chance to peruse it. Specific comments are also welcome.
Public Submission Policy
NOTICE: You are entirely responsible for all content that you upload, download,
or otherwise make available via the Embedded.com web site. TechInsights does not
control the content posted by visitors to Embedded.com and does not guarantee
the accuracy, integrity, or quality of such content. Under no circumstances will
TechInsights be liable in any way for any content not authored by TechInsights,
or any loss or damage of any kind incurred as a result of the use of any content
made available via Embedded.com.