$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [dynamic_bitset] Endianess and Adaption Vs Copying
From: Joel (jdy_at_[hidden])
Date: 2012-05-01 16:35:16
I've noticed that the dynamic_bitset seems to have endian issues. For masking
out the ith bit in a block, it uses 1 shifted left by i. As a result, the bits
are not consecutive.
For example if the block_type is uint8_t, and we have 16 bits in the bitset,
then bits are numbered:
00 01 02 03 04 05 06 07 15 14 13 12 11 10 09 08
in memory. That doesn't seem right---7th and 8th bits should be adjacent. Does
anyone have suggestions for controlling this?
Second, has anyone adapted dynamic_bitset to be an adaptor for an existing
memory range to avoid copying?
Thanks!
Joel