Discussion:
cannot use __int64 as bit-field base type
(too old to reply)
David
2014-05-18 21:33:22 UTC
Permalink
Hi,

How do I get around the subject in OW 1.9? One of the fields is 44 bits so
I really need 64bit base field types..

TIA!!
Paul S. Person
2014-05-19 16:24:36 UTC
Permalink
Post by David
Hi,
How do I get around the subject in OW 1.9? One of the fields is 44 bits so
I really need 64bit base field types..
At a guess, you will have to split it into two bit fields.

If I read the documentation correctly, something like

uint_32t spacer : 0
uint_32t part_1 : 32
uint_32t part_2 : 12

/should/ result in part_1 starting at a 32-bit boundary (spacer may
not actually be needed) and be immediately followed by part_2, which
/might/ allow you to read/write 44 bits from part_1. I haven't tried
this, though, so it may not work.
--
"Nature must be explained in
her own terms through
the experience of our senses."
Continue reading on narkive:
Loading...